Browse Source

Added "Return to list" button in show view.

dirkbl 13 years ago
parent
commit
a56b4ff9d1
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Resources/views/CRUD/base_show.html.twig

+ 3 - 0
Resources/views/CRUD/base_show.html.twig

@@ -23,6 +23,9 @@ file that was distributed with this source code.
             {% if admin.hasRoute('create') and admin.isGranted('CREATE')%}
                 <li class="btn sonata-action-element"><a href="{{ admin.generateUrl('create') }}">{% trans from 'SonataAdminBundle' %}link_action_create{% endtrans %}</a></li>
             {% endif %}
+            {% if admin.hasroute('list') and admin.isGranted('LIST')%}
+                <li class="btn sonata-action-element"><a href="{{ admin.generateUrl('list') }}">{% trans from 'SonataAdminBundle' %}link_action_list{% endtrans %}</a></li>
+            {% endif %}
         </ul>
     </div>
 {% endblock %}