{# This file is part of the Sonata package. (c) Thomas Rabaix For the full copyright and license information, please view the LICENSE file that was distributed with this source code. #} {%- block name -%} {% apply spaceless %} {% if field_description.label is not same as(false) %} {{ field_description.label|trans({}, field_description.translationDomain ?: admin.translationDomain) }} {% endif %} {% endapply %} {%- endblock -%} {%- block field -%} {% apply spaceless %} {% set collapse = field_description.options.collapse|default(false) %} {% if collapse %}
{% block field_value %} {% if field_description.options.safe %}{{ value|raw }}{% else %}{{ value|nl2br }}{% endif %} {% endblock %}
{% else %} {{ block('field_value') }} {% endif %} {% endapply %} {%- endblock -%} {%- block field_compare -%} {% apply spaceless %} {% if(value_compare is defined) %} {% set value = value_compare %} {{ block('field') }} {% endif %} {% endapply %} {%- endblock -%}