{% macro render_groups(admin, form, groups, has_tab) %}
{{ form_group.description|trans({}, form_group.translation_domain ?: admin.translationDomain)|raw }}
{% endif %} {% for field_name in form_group.fields|filter(field_name => form[field_name] is defined) %} {{ form_row(form[field_name]) }} {% else %} {{ 'message_form_group_empty'|trans({}, 'SonataAdminBundle') }} {% endfor %}