base_show_compare.html.twig 720 B

12345678910111213141516171819202122232425262728
  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.html.twig' %}
  8. {% block show_title %}
  9. <tr class="sonata-ba-view-title">
  10. <th colspan="3">
  11. {{ admin.trans(name) }}
  12. </th>
  13. </tr>
  14. {% endblock %}
  15. {% block show_field %}
  16. <tr class="sonata-ba-view-container history-audit-compare">
  17. {% if elements[field_name] is defined %}
  18. {{ elements[field_name]|render_view_element_compare(object, object_compare) }}
  19. {% endif %}
  20. </tr>
  21. {% endblock %}