2020-11-23 20:41:02 +01:00
|
|
|
{% extends 'pages/settings/settings.twig' %}
|
|
|
|
{% import 'macros/form.twig' as f %}
|
|
|
|
{% import 'macros/base.twig' as m %}
|
|
|
|
|
|
|
|
{% block title %}{{ __('settings.password') }}{% endblock %}
|
|
|
|
|
|
|
|
{% block row_content %}
|
2022-06-07 21:33:08 +02:00
|
|
|
<form action="" enctype="multipart/form-data" method="post">
|
|
|
|
{{ csrf() }}
|
2020-11-23 20:41:02 +01:00
|
|
|
|
2022-06-07 21:33:08 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
{{ m.info(__('settings.password.info')) }}
|
2021-12-09 23:39:46 +01:00
|
|
|
|
2022-06-07 21:33:08 +02:00
|
|
|
{% if user.password %}
|
2020-11-23 20:41:02 +01:00
|
|
|
{{ f.input(
|
|
|
|
'password',
|
2022-06-07 21:33:08 +02:00
|
|
|
__('settings.password.password'),
|
2020-11-23 20:41:02 +01:00
|
|
|
'password',
|
2022-06-07 21:33:08 +02:00
|
|
|
{'required': true}
|
2020-11-23 20:41:02 +01:00
|
|
|
) }}
|
2022-06-07 21:33:08 +02:00
|
|
|
{% endif %}
|
|
|
|
{{ f.input(
|
|
|
|
'new_password',
|
|
|
|
__('settings.password.new_password'),
|
|
|
|
'password',
|
2022-10-13 20:23:22 +02:00
|
|
|
{'min_length': min_length, 'required': true}
|
2022-06-07 21:33:08 +02:00
|
|
|
) }}
|
|
|
|
{{ f.input(
|
|
|
|
'new_password2',
|
|
|
|
__('settings.password.new_password2'),
|
|
|
|
'password',
|
2022-10-13 20:23:22 +02:00
|
|
|
{'min_length': min_length, 'required': true}
|
2022-06-07 21:33:08 +02:00
|
|
|
) }}
|
2022-12-10 02:27:24 +01:00
|
|
|
{{ f.submit(__('form.save')) }}
|
2020-11-23 20:41:02 +01:00
|
|
|
</div>
|
2022-06-07 21:33:08 +02:00
|
|
|
</div>
|
|
|
|
</form>
|
2020-11-23 20:41:02 +01:00
|
|
|
{% endblock %}
|