Block definitions should be at the top level, not the included level

This commit is contained in:
2023-06-05 11:52:09 +01:00
parent 9b229fc6ee
commit 83bf9a7307
29 changed files with 99 additions and 93 deletions

View File

@@ -10,11 +10,15 @@
{% block settings_account %}
<div class="row">
{% include "forms/inputs/user-email.html.twig" with { 'col_width': 'col-sm-12' } %}
{% block input_user_email %}
{% include "forms/inputs/user-email.html.twig" with { 'col_width': 'col-sm-12' } %}
{% endblock %}
</div>
<div class="row">
{% include "forms/inputs/user-new_password.html.twig" with { 'col_width': 'col-sm-12' } %}
{% block input_user_new_password %}
{% include "forms/inputs/user-new_password.html.twig" with { 'col_width': 'col-sm-12' } %}
{% endblock %}
</div>
{% if 'password' not in form.fields.hidden %}
@@ -22,7 +26,9 @@
{% endif %}
<div class="row">
{% include "forms/inputs/user-current_password.html.twig" with { 'col_width': 'col-sm-12' } %}
{% block input_user_current_password %}
{% include "forms/inputs/user-current_password.html.twig" with { 'col_width': 'col-sm-12' } %}
{% endblock %}
</div>
{% endblock %}
</div>