37 lines
1.4 KiB
HTML
37 lines
1.4 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block body %}
|
|
<section class="section">
|
|
<div class="container">
|
|
<h1 class="title">{{ title }}</h1>
|
|
<form class="box" hx-post="{{ endpoint }}" hx-target-422="#error-message-retype"
|
|
_="on input put '' into #error-message-retype">
|
|
<input type="hidden" name="token" value="{{ token }}" />
|
|
|
|
<div class="field">
|
|
<label class="label" for="password">{{ new_password_label }}</label>
|
|
<div class="control">
|
|
<input class="input" hx-post="{{ endpoint }}" hx-trigger="keyup changed delay:500ms"
|
|
hx-target="#password-strength" hx-target-422="#password-strength" placeholder="**********"
|
|
name="password" type="password" required hx-swap="outerHTML" maxlength=256
|
|
_="on input put '' into #password-strength">
|
|
</div>
|
|
<div id="password-strength" class="mb-3 help content"></div>
|
|
</div>
|
|
|
|
<div class="field">
|
|
<label class="label" for="passwordretyped">{{ retype_label }}</label>
|
|
<div class="control">
|
|
<input class="input" placeholder="**********" name="passwordretyped" type="password" maxlength=256 required>
|
|
</div>
|
|
<div id="error-message-retype" class="mb-3 help is-danger"></div>
|
|
</div>
|
|
|
|
<div class="level">
|
|
<input class="button is-primary level-left" type="submit" value="{{ submit_button_label }}" />
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</section>
|
|
{% endblock %}
|