mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-07-29 07:01:35 +00:00
Add macros and use them
This commit is contained in:
@@ -9,25 +9,13 @@
|
||||
<div class="col s12 m8">
|
||||
<div class="card">
|
||||
<form method="POST">
|
||||
{{ reset_password_form.hidden_tag() }}
|
||||
<div class="card-content">
|
||||
<div class="input-field">
|
||||
{{ reset_password_form.password(class='validate') }}
|
||||
{{ reset_password_form.password.label }}
|
||||
{% for error in reset_password_form.password.errors %}
|
||||
<span class="helper-text red-text">{{ error }}</span>
|
||||
{% endfor %}
|
||||
</div>
|
||||
<div class="input-field">
|
||||
{{ reset_password_form.password_confirmation(class='validate') }}
|
||||
{{ reset_password_form.password_confirmation.label }}
|
||||
{% for error in reset_password_form.password_confirmation.errors %}
|
||||
<span class="helper-text red-text">{{ error }}</span>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{{ reset_password_form.hidden_tag() }}
|
||||
{{ materialize.field(reset_password_form.password, data_length='128') }}
|
||||
{{ materialize.field(reset_password_form.password_confirmation, data_length='128') }}
|
||||
</div>
|
||||
<div class="card-action right-align">
|
||||
{{ macros.submit_button(reset_password_form.submit) }}
|
||||
{{ materialize.field(reset_password_form.submit, material_icon='send') }}
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user