You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nodebb/src/views/reset_code.tpl

42 lines
1.5 KiB
Smarty

<!-- IMPORT partials/breadcrumbs.tpl -->
{{{ if valid }}}
<div class="card card-body bg-light">
{{{ if displayExpiryNotice }}}
<div class="alert alert-warning">
[[reset_password:password_expired]]
</div>
{{{ end }}}
<div class="alert alert-success alert-dismissible hidden" id="success">
<button type="button" class="btn-close" data-bs-dismiss="alert"></button>
<strong>[[reset_password:password_changed.title]]</strong>
<p>[[reset_password:password_changed.message]]</p>
</div>
<div class="alert alert-warning hidden" id="notice">
<strong></strong>
<p></p>
</div>
<form onsubmit="return false;" id="reset-form" class="row">
<div class="col-sm-6">
<label class="form-label" for="password">[[reset_password:new_password]]</label>
<input class="form-control" type="password" placeholder="[[reset_password:new_password]]" id="password" /><br />
</div>
<div class="col-sm-6">
<label class="form-label" for="repeat">[[reset_password:repeat_password]]</label>
<input class="form-control" type="password" placeholder="[[reset_password:repeat_password]]" id="repeat" /><br />
</div>
<div class="col-12">
<button class="btn btn-primary btn-block" id="reset" type="submit">[[reset_password:reset_password]]</button>
</div>
</form>
</div>
{{{ else }}}
<div class="card text-bg-danger">
<h5 class="card-header">
[[reset_password:wrong_reset_code.title]]
</h5>
<div class="card-body">
<p>[[reset_password:wrong_reset_code.message]]</p>
</div>
</div>
{{{ end }}}