{# 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 -%} {%- 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 -%} {%- endblock -%} {%- block field -%} {% 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 -%} {%- endblock -%} {%- block field_compare -%} {%- if value_compare is defined -%} {% set value = value_compare %} {% set object = object_compare %} {{- block('field') -}} {%- endif -%} {%- endblock -%}