{# @var field \EasyCorp\Bundle\EasyAdminBundle\Dto\FieldDto #} {# this template renders the opening HTML tags of a fieldset on the 'detail' page; the closing tags are rendered by 'crud/detail/fieldset_close' #} {% set has_help = field.help is ea_is_not_empty %} {% set has_label = field.label is ea_is_not_empty %} {% set fieldset_has_header = has_label or field.getCustomOption('icon') or has_help %} {% set is_collapsible_option_name = constant('EasyCorp\\Bundle\\EasyAdminBundle\\Field\\FormField::OPTION_COLLAPSIBLE') %} {% set is_collapsed_option_name = constant('EasyCorp\\Bundle\\EasyAdminBundle\\Field\\FormField::OPTION_COLLAPSED') %} {% set is_collapsible = field.getCustomOption(is_collapsible_option_name) %} {% set is_collapsed = field.getCustomOption(is_collapsed_option_name) %}
{% if fieldset_has_header %}
{% set fieldset_title_contents %} {% if is_collapsible %} {% endif %} {% if field.getCustomOption('icon') %} {% endif %} {{ field.label|trans|raw }} {% endset %} {% if is_collapsible %} {% else %} {{ fieldset_title_contents|raw }} {% endif %} {% if has_help %}
{{ field.help|trans|raw }}
{% endif %}
{% endif %}