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

@@ -6,21 +6,12 @@
{% include "forms/csrf.html.twig" %}
{% block settings_profile %}
{% if 'name' not in form.fields.hidden %}
<div class="row">
<div class="col-sm-6">
{% include "forms/partials/input-user-first_name.html.twig" %}
</div>
<div class="col-sm-6">
{% include "forms/partials/input-user-last_name.html.twig" %}
</div>
{% include "forms/partials/input-user-name.html.twig" with { 'col_width': 'col-sm-12' } %}
</div>
{% endif %}
<div class="row">
<div class="col-sm-12">
{% include "forms/partials/input-user-locale.html.twig" %}
</div>
{% include "forms/partials/input-user-locale.html.twig" with { 'col_width': 'col-sm-12' } %}
</div>
{% endblock %}
</div>