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

@@ -1,19 +1,33 @@
{% extends "@admin/forms/user.html.twig" %}
{% block user_form %}
{% include "forms/inputs/user-user_name.html.twig" with { 'col_width': 'col-sm-6' } %}
{% block input_user_user_name %}
{% include "forms/inputs/user-user_name.html.twig" with { 'col_width': 'col-sm-6' } %}
{% endblock %}
{% include "forms/inputs/user-group.html.twig" with { 'col_width': 'col-sm-6' } %}
{% block input_user_group %}
{% include "forms/inputs/user-group.html.twig" with { 'col_width': 'col-sm-6' } %}
{% endblock %}
{% include "forms/inputs/user-name.html.twig" with { 'col_width': 'col-sm-12' } %}
{% block input_user_name %}
{% include "forms/inputs/user-name.html.twig" with { 'col_width': 'col-sm-12' } %}
{% endblock %}
{% include "forms/inputs/user-email.html.twig" with { 'col_width': 'col-sm-6' } %}
{% block input_user_email %}
{% include "forms/inputs/user-email.html.twig" with { 'col_width': 'col-sm-6' } %}
{% endblock %}
{% include "forms/inputs/user-theme.html.twig" with { 'col_width': 'col-sm-6' } %}
{% block input_user_theme %}
{% include "forms/inputs/user-theme.html.twig" with { 'col_width': 'col-sm-6' } %}
{% endblock %}
{% include "forms/inputs/user-locale.html.twig" with { 'col_width': 'col-sm-6' } %}
{% block input_user_locale %}
{% include "forms/inputs/user-locale.html.twig" with { 'col_width': 'col-sm-6' } %}
{% endblock %}
{% if 'password' not in form.fields.hidden %}
{% include "forms/partials/user-set-password.html.twig" %}
{% endif %}
{% block input_user_description %}
{% if 'password' not in form.fields.hidden %}
{% include "forms/partials/user-set-password.html.twig" %}
{% endif %}
{% endblock %}
{% endblock %}