templates/admin/CRUD/Valoracion/action_show.html.twig line 1

Open in your IDE?
  1. {% if admin.hasAccess('show', object) and admin.hasRoute('show') %}
  2.     {% set button_content = sonata_config.getOption('list_action_button_content') %}
  3.     {% if object.valoracion is not empty %}
  4.         {% set modalAttr = '' %}
  5.         {% for attr, value in actions.link_parameters['modal-attr']|default([]) %}
  6.             {% set modalAttr = modalAttr ~ ' ' ~ attr ~ ' = "' ~ value ~ '"'%}
  7.         {% endfor %}
  8.         <a
  9.                 href="{{ url('admin_app_valoracion_edit', {id: object.valoracion.id }) }}"
  10.                 class="view_link modal-show"
  11.                 title="{{ 'action_show'|trans({}, 'SonataAdminBundle') }}"
  12.                 {{ modalAttr | raw }}
  13.         >
  14.             {% if button_content == 'icon' or button_content == 'all' %}
  15.                 <i class="fas fa-eye" aria-hidden="true"></i>
  16.             {% endif %}
  17.             {% if button_content == 'text' or button_content == 'all' %}
  18.                 {{ 'action_show'|trans({}, 'SonataAdminBundle') }}
  19.             {% else %}
  20.                 <span class="sr-only">
  21.                     {{ 'action_show'|trans({}, 'SonataAdminBundle') }}
  22.                 </span>
  23.             {% endif %}
  24.         </a>
  25.     {% endif %}
  26. {% endif %}