36 lines
1.5 KiB
Twig
36 lines
1.5 KiB
Twig
<form id="account-settings" role="form" action="{{site.uri.public}}/account/settings" method="post">
|
|
<div class="box-header">
|
|
<h3 class="box-title"><i class="fas fa-cog fa-fw"></i> {{translate("ACCOUNT.SETTINGS")}}</h3>
|
|
</div>
|
|
<div class="box-body">
|
|
{% include "forms/csrf.html.twig" %}
|
|
<!-- Prevent browsers from trying to autofill the password field. See http://stackoverflow.com/a/23234498/2970321 -->
|
|
<input type="text" style="display:none">
|
|
<input type="password" style="display:none">
|
|
|
|
{% block settings_account %}
|
|
<div class="row">
|
|
{% include "forms/inputs/user-email.html.twig" with { 'col_width': 'col-sm-12' } %}
|
|
</div>
|
|
|
|
<div class="row">
|
|
{% include "forms/inputs/user-new_password.html.twig" with { 'col_width': 'col-sm-12' } %}
|
|
</div>
|
|
|
|
{% if 'password' not in form.fields.hidden %}
|
|
<hr>
|
|
{% endif %}
|
|
|
|
<div class="row">
|
|
{% include "forms/inputs/user-current_password.html.twig" with { 'col_width': 'col-sm-12' } %}
|
|
</div>
|
|
{% endblock %}
|
|
</div>
|
|
{% if 'submit' not in form.fields.hidden %}
|
|
<div class="box-footer text-center">
|
|
<button type="reset" class="btn btn-default">{{translate('RESET')}}</button>
|
|
<button type="submit" class="btn btn-primary js-submit">{{translate('SAVE')}}</button>
|
|
</div>
|
|
{% endif %}
|
|
</form>
|