Block definitions should be at the top level, not the included level
This commit is contained in:
@@ -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 %}
|
||||
Reference in New Issue
Block a user