base_show_field.html.twig 759 B

12345678910111213141516171819202122
  1. {#
  2. This file is part of the Sonata package.
  3. (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  4. For the full copyright and license information, please view the LICENSE
  5. file that was distributed with this source code.
  6. #}
  7. <th{% if(is_diff|default(false)) %} class="diff"{% endif %}>{% block name %}{{ field_description.label|trans({}, field_description.translationDomain ?: admin.translationDomain) }}{% endblock %}</th>
  8. <td>{% block field %}{% if field_description.options.safe %}{{ value|raw }}{% else %}{{ value|nl2br }}{% endif %}{% endblock %}</td>
  9. {% block field_compare %}
  10. {% if(value_compare is defined) %}
  11. <td>
  12. {% set value = value_compare %}
  13. {{ block('field') }}
  14. </td>
  15. {% endif %}
  16. {% endblock %}