{# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #} {# @var entities \EasyCorp\Bundle\EasyAdminBundle\Collection\EntityDtoCollection #} {# @var paginator \EasyCorp\Bundle\EasyAdminBundle\Orm\EntityPaginator #} {% extends ea.templatePath('layout') %} {% trans_default_domain ea.i18n.translationDomain %} {% block content_title %} {{ 'detail'|sov_trans_admin_title(translation_entity_name, {id: ea.getEntity().getInstance().getId()}) }} {% endblock %} {% block content_breadcrumb %} {{ include('@LcSov/adminlte/block/breadcrumb.html.twig') }} {% endblock content_breadcrumb %} {% block page_actions %} {% endblock page_actions %} {% block main %} {% block main_prepend %}{% endblock %}
{% block card_wrapper %}
{% block card_header_wrapper %}
{% endblock %} {% block card_body_wrapper %}
{% block detail_fields %} {% set row_number = 0 %} {% for field in entity.fields %} {% set is_decoration_field = 'field-form_panel' in field.cssClass %} {% if loop.first and not is_decoration_field %} {% set row_number = 0 %} {{ _self.open_empty_content_panel(field) }} {% endif %} {% if is_decoration_field %} {% if not loop.first %} {{ _self.close_content_panel() }} {% endif %} {% set row_number = 0 %} {% if field.label is empty and field.help is empty %} {{ _self.open_empty_content_panel(field) }} {% else %} {{ _self.open_content_panel_with_header(field) }} {% endif %} {% endif %} {% block detail_field %} {% if not is_decoration_field %} {{ _self.render_field(entity, field, row_number) }} {% endif %} {% endblock %} {% set row_number = is_decoration_field ? row_number : row_number + 1 %} {% endfor %} {{ _self.close_content_panel() }} {% endblock %}
{% endblock %} {% block card_footer_wrapper %} {% endblock %}
{% endblock card_wrapper %}
{% block main_append %}{% endblock %} {% endblock main %}