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