|
@@ -21,18 +21,16 @@ file that was distributed with this source code.
|
|
|
|
|
|
{% block actions %}
|
|
{% block actions %}
|
|
<div class="sonata-actions">
|
|
<div class="sonata-actions">
|
|
- <ul>
|
|
|
|
- {% if admin.hasroute('show') and admin.id(object) and admin.isGranted('VIEW', object) and admin.show|length > 0 %}
|
|
|
|
- <li class="btn sonata-action-element"><a href="{{ admin.generateObjectUrl('show', object) }}">{{ 'link_action_show'|trans({}, 'SonataAdminBundle') }}</a></li>
|
|
|
|
- {% endif %}
|
|
|
|
- {% if admin.hasroute('history') and admin.id(object) and admin.isGranted('EDIT', object) %}
|
|
|
|
- <li class="btn sonata-action-element"><a href="{{ admin.generateObjectUrl('history', object) }}">{{ 'link_action_history'|trans({}, 'SonataAdminBundle') }}</a></li>
|
|
|
|
- {% endif %}
|
|
|
|
- {% include 'SonataAdminBundle:Core:create_button.html.twig' %}
|
|
|
|
- {% if admin.hasroute('list') and admin.isGranted('LIST')%}
|
|
|
|
- <li class="btn sonata-action-element"><a href="{{ admin.generateUrl('list') }}">{{ 'link_action_list'|trans({}, 'SonataAdminBundle') }}</a></li>
|
|
|
|
- {% endif %}
|
|
|
|
- </ul>
|
|
|
|
|
|
+ {% if admin.hasroute('show') and admin.id(object) and admin.isGranted('VIEW', object) and admin.show|length > 0 %}
|
|
|
|
+ <a class="btn sonata-action-element" href="{{ admin.generateObjectUrl('show', object) }}">{{ 'link_action_show'|trans({}, 'SonataAdminBundle') }}</a>
|
|
|
|
+ {% endif %}
|
|
|
|
+ {% if admin.hasroute('history') and admin.id(object) and admin.isGranted('EDIT', object) %}
|
|
|
|
+ <a class="btn sonata-action-element" href="{{ admin.generateObjectUrl('history', object) }}">{{ 'link_action_history'|trans({}, 'SonataAdminBundle') }}</a>
|
|
|
|
+ {% endif %}
|
|
|
|
+ {% include 'SonataAdminBundle:Core:create_button.html.twig' %}
|
|
|
|
+ {% if admin.hasroute('list') and admin.isGranted('LIST')%}
|
|
|
|
+ <a class="btn sonata-action-element" href="{{ admin.generateUrl('list') }}">{{ 'link_action_list'|trans({}, 'SonataAdminBundle') }}</a>
|
|
|
|
+ {% endif %}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
{% endblock %}
|
|
|
|
|