Skip to content

Node.js based forum software built for the modern web

1.6 KB
Raw Blame
<div class="row">
	<div class="col-12 col-sm-6 offset-sm-3">
		{{{ if valid }}}
		<div class="card card-body bg-light">
			{{{ if displayExpiryNotice }}}
			<div class="alert alert-warning">
				{{tx("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>{{tx("reset_password:password-changed.title")}}</strong>
				<p>{{tx("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">
				<div class="mb-3">
					<label class="form-label" for="password">{{tx("reset_password:new-password")}}</label>
					<input class="form-control" type="password" placeholder="{{tx("reset_password:new-password")}}" id="password" />
				</div>
				<div class="mb-3">
					<label class="form-label" for="repeat">{{tx("reset_password:repeat-password")}}</label>
					<input class="form-control" type="password" placeholder="{{tx("reset_password:repeat-password")}}" id="repeat" />
				</div>
				<button class="btn btn-primary" id="reset" type="submit">{{tx("reset_password:reset-password")}}</button>
			</form>
		</div>
		{{{ else }}}
		<div class="card">
			<div class="card-header">
				<h5 class="mb-0">{{tx("reset_password:wrong-reset-code.title")}}</h5>
			</div>
			<div class="card-body">
				<p>{{tx("reset_password:wrong-reset-code.message")}}</p>
			</div>
		</div>
		{{{ end }}}
	</div>
</div>