engelsystem/resources/views/pages/settings/password.twig

37 lines
1.3 KiB
Twig
Raw Normal View History

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 %}
<form action="" enctype="multipart/form-data" method="post">
{{ csrf() }}
<div class="row">
<div class="col-md-12">
2020-11-24 17:27:21 +01:00
{{ m.info(__('settings.password.info')) }}
2020-11-23 20:41:02 +01:00
{{ f.input(
'password',
2020-11-24 17:27:21 +01:00
__('settings.password.password'),
2020-11-23 20:41:02 +01:00
'password',
{'required': true}
) }}
{{ f.input(
'new_password',
2020-11-24 17:27:21 +01:00
__('settings.password.new_password'),
2020-11-23 20:41:02 +01:00
'password',
2020-11-24 17:27:21 +01:00
{'min': min_length, 'required': true}
2020-11-23 20:41:02 +01:00
) }}
{{ f.input(
'new_password2',
2020-11-24 17:27:21 +01:00
__('settings.password.new_password2'),
2020-11-23 20:41:02 +01:00
'password',
2020-11-24 17:27:21 +01:00
{'min': min_length, 'required': true}
2020-11-23 20:41:02 +01:00
) }}
{{ f.submit() }}
</div>
</div>
</form>
{% endblock %}