Removed double hidden check by adding the col_width parameter to form inputs which generates the col div

This commit is contained in:
2023-06-01 14:59:31 +01:00
parent e559d4380b
commit bf9467b480
12 changed files with 134 additions and 156 deletions

View File

@@ -10,23 +10,19 @@
{% block settings_account %}
<div class="row">
<div class="col-sm-12">
{% include "forms/partials/input-user-email.html.twig" %}
</div>
{% include "forms/partials/input-user-email.html.twig" with { 'col_width': 'col-sm-12' } %}
</div>
<div class="row">
<div class="col-sm-12">
{% include "forms/partials/input-user-new_password.html.twig" %}
</div>
{% include "forms/partials/input-user-new_password.html.twig" with { 'col_width': 'col-sm-12' } %}
</div>
{% if 'password' not in form.fields.hidden %}
<hr>
{% endif %}
<div class="row">
<div class="col-sm-12">
{% include "forms/partials/input-user-current_password.html.twig" %}
</div>
{% include "forms/partials/input-user-current_password.html.twig" with { 'col_width': 'col-sm-12' } %}
</div>
{% endblock %}
</div>