show_trans.html.twig 655 B

12345678910111213141516171819202122232425
  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. {% extends 'SonataAdminBundle:CRUD:base_show_field.html.twig' %}
  8. {% block field%}
  9. {% if field_description.options.catalogue is not defined %}
  10. {% set value = value|trans %}
  11. {% else %}
  12. {% set value = value|trans({}, field_description.options.catalogue) %}
  13. {% endif %}
  14. {% if field_description.options.safe %}
  15. {{ value|raw }}
  16. {% else %}
  17. {{ value }}
  18. {% endif %}
  19. {% endblock %}