{# 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) %} {% if field_description.translationDomain is same as(false) %} {{ field_description.label }} {% else %} {{ field_description.label|trans({}, field_description.translationDomain) }} {% endif %} {% endif %} {% endapply %} {%- endblock -%} {%- block field -%} {% apply spaceless %} {% set collapse = field_description.option('collapse') %} {% if collapse %}
{% block field_value %} {% if field_description.option('safe', false) %}{{ value|raw }}{% else %}{{ value|default('')|nl2br }}{% endif %} {% endblock %}
{% else %} {{ block('field_value') }} {% endif %} {% endapply %} {%- endblock -%} {%- block field_compare -%} {% apply spaceless %} {% if value_compare is defined %} {% set value = value_compare %} {% set object = object_compare %} {{ block('field') }} {% endif %} {% endapply %} {%- endblock -%}