mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-06-15 10:30:40 +00:00
Add macros and use them
This commit is contained in:
@ -8,8 +8,8 @@
|
||||
<br class="hide-on-small-only">
|
||||
<div class="card">
|
||||
<form method="POST">
|
||||
{{ edit_general_settings_form.hidden_tag() }}
|
||||
<div class="card-content">
|
||||
{{ edit_general_settings_form.hidden_tag() }}
|
||||
<div class="row">
|
||||
<div class="col s9">
|
||||
<p><i class="material-icons left">brightness_3</i>{{ edit_general_settings_form.dark_mode.label.text }}</p>
|
||||
@ -46,7 +46,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-action right-align">
|
||||
{{ macros.submit_button(edit_general_settings_form.save_settings) }}
|
||||
{{ materialize.field(edit_general_settings_form.save_settings, material_icon='send') }}
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@ -63,35 +63,14 @@
|
||||
<br class="hide-on-small-only">
|
||||
<div class="card">
|
||||
<form method="POST">
|
||||
{{ edit_password_form.hidden_tag() }}
|
||||
<div class="card-content">
|
||||
<div class="input-field ">
|
||||
<i class="material-icons prefix">vpn_key</i>
|
||||
{{ edit_password_form.current_password() }}
|
||||
{{ edit_password_form.current_password.label }}
|
||||
{% for error in edit_password_form.current_password.errors %}
|
||||
<span class="helper-text red-text">{{ error }}</span>
|
||||
{% endfor %}
|
||||
</div>
|
||||
<div class="input-field">
|
||||
<i class="material-icons prefix">vpn_key</i>
|
||||
{{ edit_password_form.password() }}
|
||||
{{ edit_password_form.password.label }}
|
||||
{% for error in edit_password_form.password.errors %}
|
||||
<span class="helper-text red-text">{{ error }}</span>
|
||||
{% endfor %}
|
||||
</div>
|
||||
<div class="input-field">
|
||||
<i class="material-icons prefix">vpn_key</i>
|
||||
{{ edit_password_form.password_confirmation() }}
|
||||
{{ edit_password_form.password_confirmation.label }}
|
||||
{% for error in edit_password_form.password_confirmation.errors %}
|
||||
<span class="helper-text red-text">{{ error }}</span>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{{ edit_password_form.hidden_tag() }}
|
||||
{{ materialize.field(edit_password_form.current_password, data_length='128', material_icon='vpn_key') }}
|
||||
{{ materialize.field(edit_password_form.password, data_length='128', material_icon='vpn_key') }}
|
||||
{{ materialize.field(edit_password_form.password_confirmation, data_length='128', material_icon='vpn_key') }}
|
||||
</div>
|
||||
<div class="card-action right-align">
|
||||
{{ macros.submit_button(edit_password_form.save_password) }}
|
||||
{{ materialize.field(edit_password_form.save_password, material_icon='send') }}
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@ -108,19 +87,12 @@
|
||||
<br class="hide-on-small-only">
|
||||
<div class="card">
|
||||
<form method="POST">
|
||||
{{ edit_email_form.hidden_tag() }}
|
||||
<div class="card-content">
|
||||
<div class="input-field">
|
||||
<i class="material-icons prefix">mail</i>
|
||||
{{ edit_email_form.email() }}
|
||||
{{ edit_email_form.email.label }}
|
||||
{% for error in edit_email_form.email.errors %}
|
||||
<span class="helper-text red-text">{{ error }}</span>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{{ edit_email_form.hidden_tag() }}
|
||||
{{ materialize.field(edit_email_form.email, class_='validate', material_icon='email', type='email') }}
|
||||
</div>
|
||||
<div class="card-action right-align">
|
||||
{{ macros.submit_button(edit_email_form.save_email) }}
|
||||
{{ materialize.field(edit_email_form.save_email, material_icon='send') }}
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user