require actual password for change + insert link in menu

This commit is contained in:
2018-08-16 13:41:32 +02:00
parent af803cc87d
commit 5b1ba71a8a
9 changed files with 169 additions and 36 deletions

View File

@@ -23,12 +23,22 @@
{% block title %}{{"Change my password"|trans}}{% endblock %}
{% block content %}
<div class="grid-10 grid-mobile-10 grid-tablet-10 centered">
<h1>{{ 'Choose a new password'|trans }}</h1>
<h1>{{ 'Change my password'|trans }}</h1>
{{ form_start(form) }}
{{ form_row(form.password) }}
{{ form_widget(form.submit, { 'attr': { 'class': 'sc-button orange' } } ) }}
{{ form_end(form) }}
{{ form_start(form) }}
{{ form_row(form.actual_password) }}
{{ form_row(form.new_password) }}
<ul class="record_actions">
<li>
{{ form_widget(form.submit, { 'attr': { 'class': 'sc-button orange' } } ) }}
</li>
</ul>
{{ form_end(form) }}
</div>
{% endblock %}