{% extends base_template %} {% block javascripts %} {{ parent() }} {% endblock %} {% macro render_groups(admin, form, groups, has_tab) %}
{% for code in groups|filter(code => admin.formgroups[code] is defined) %} {% set form_group = admin.formgroups[code] %}

{% if form_group.translation_domain is defined and form_group.translation_domain is same as(false) %} {{ form_group.label }} {% else %} {{ form_group.label|trans({}, form_group.translation_domain ?? admin.translationDomain) }} {% endif %}

{% if form_group.description %} {% if form_group.translation_domain is defined and form_group.translation_domain is same as(false) %}

{{ form_group.description|raw }}

{% else %}

{{ form_group.description|trans({}, form_group.translation_domain ?? admin.translationDomain)|raw }}

{% endif %} {% endif %} {% for form_field_name in form_group.fields|filter(form_field_name => form[form_field_name] is defined) %} {{ form_row(form[form_field_name]) }} {% else %} {% if form_group.empty_message != false %} {% if form_group.empty_message_translation_domain is defined and form_group.empty_message_translation_domain is same as(false) %} {{ form_group.empty_message }} {% else %} {{ form_group.empty_message|trans({}, form_group.empty_message_translation_domain ?? admin.translationDomain) }} {% endif %} {% endif %} {% endfor %}
{% endfor %}
{% endmacro %}