Node.js based forum software built for the modern web
fix: reset_code.tpl card block expanding to bottom of container
Julian Lam2792d771047a
diff --git a/src/views/reset_code.tpl b/src/views/reset_code.tplindex 2365d7614c..ab3e58fc90 100644--- a/src/views/reset_code.tpl+++ b/src/views/reset_code.tpl@@ -1,42 +1,42 @@<!-- 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 class="row col-12 col-sm-6 offset-sm-3">+ {{{ if valid }}}+ <div class="card card-body bg-light">+ {{{ if displayExpiryNotice }}}+ <div class="alert alert-warning">+ [[reset_password:password_expired]]</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 />+ {{{ 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="col-12">+ <div class="alert alert-warning hidden" id="notice">+ <strong></strong>+ <p></p>+ </div>+ <form onsubmit="return false;" id="reset-form">+ <div class="mb-3">+ <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="mb-3">+ <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><button class="btn btn-primary btn-block" id="reset" type="submit">[[reset_password:reset_password]]</button>+ </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>- </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 }}}\ No newline at end of file+ {{{ end }}}+</div>\ No newline at end of file