templates/admin/Button/show_reloj_base_button.html.twig line 1

Open in your IDE?
  1. {% set classSeparator = 'separator-right' %}
  2. {# Determinar quĂ© objeto usar como "reloj" solo si es instancia de App\Entity\Reloj #}
  3. {% set relojObject = (object.reloj is defined and instanceof(object.reloj, '\\App\\Entity\\Reloj'))
  4.     ? object.reloj
  5.     : (instanceof(object, '\\App\\Entity\\Reloj') ? object : null) %}
  6. {% if is_granted('ROLE_SUPER_ADMIN') and relojObject and relojObject.id and relojObject.relojBase %}
  7.     <li id="action-show-reloj-base" class="action">
  8.         <a class="sonata-action-element" href="{{ url('admin_app_reloj_edit', admin.getEntitySubClass is defined ? {'id': relojObject.relojBase.id, 'subclass': admin.getEntitySubClass} : {'id': relojObject.relojBase.id}) }}"
  9.             title="{{ 'link_action_show_reloj_base'|trans({}, 'SonataAdminBundle') }}" target="_blank">
  10.             <i class="fi-sr-after-link perseo-icon-navbar-prometeo {{ classSeparator }}"></i>
  11.         </a>
  12.     </li>
  13. {% endif %}