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

Open in your IDE?
  1. {% if admin.code != 'admin.operacion' or (is_granted('ROLE_SUPER_ADMIN') and admin.code == 'admin.operacion') %}
  2. {% if admin.getEntitySubClass is defined %}
  3.     <li id="action-create" class="action" data-create="{{ app.request.query.get('model_list_type') }}">
  4.         <a class="sonata-action-element {% if route_edit is defined and route_edit %} disabled {% endif %}" href="{% if app.request.query.get('model_list_type') %}#{% else %}{{ admin.generateUrl('create', {'subclass': admin.getEntitySubClass, 'nav_prometeo': app.request.query.get('nav_prometeo')}) }}{% endif %}"
  5.            title="{{ 'link_action_create'|trans({'%module%': admin.code | replace({'admin.': ''})}, 'SonataAdminBundle') }}">
  6.             <i class="fa fa-plus-circle fa-2x"></i>
  7.         </a>
  8.     </li>
  9. {% else %}
  10.     <li id="action-create" class="action" data-create="{{ app.request.query.get('model_list_type') }}">
  11.         <a class="sonata-action-element {% if route_edit is defined and route_edit %} disabled {% endif %}" href="{% if app.request.query.get('model_list_type') %}#{% else %}{{ admin.generateUrl('create', {'nav_prometeo': app.request.query.get('nav_prometeo')}) }}{% endif %}"
  12.            title="{{ 'link_action_create'|trans({'%module%': admin.code | replace({'admin.': ''})}, 'SonataAdminBundle') }}">
  13.             <i class="fa fa-plus-circle fa-2x"></i>
  14.         </a>
  15.     </li>
  16. {% endif %}
  17. {% endif %}