|
@@ -19,7 +19,7 @@ file that was distributed with this source code.
|
|
|
<table class="sonata-ba-list">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
- <th colspan="3">{{ code|trans({}, 'SonataAdminBundle') }}</td>
|
|
|
+ <th colspan="3">{{ code|trans({}, 'SonataAdminBundle') }}</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
|
|
@@ -27,8 +27,16 @@ file that was distributed with this source code.
|
|
|
{% for admin in group %}
|
|
|
<tr>
|
|
|
<td class="sonata-ba-list-label">{{ admin.label|trans({}, admin.translationdomain) }}</td>
|
|
|
- <td><a href="{{ admin.generateUrl('create')}}"><img src="{{ asset('bundles/sonataadmin/famfamfam/add.png') }}" /> {% trans from 'SonataAdminBundle' %}link_add{% endtrans %}</a></td>
|
|
|
- <td><a href="{{ admin.generateUrl('list')}}"><img src="{{ asset('bundles/sonataadmin/famfamfam/application_view_list.png') }}" />{% trans from 'SonataAdminBundle' %}link_list{% endtrans %}</a></td>
|
|
|
+ <td>
|
|
|
+ {% if admin.isGranted('CREATE') %}
|
|
|
+ <a href="{{ admin.generateUrl('create')}}"><img src="{{ asset('bundles/sonataadmin/famfamfam/add.png') }}" /> {% trans from 'SonataAdminBundle' %}link_add{% endtrans %}</a>
|
|
|
+ {% endif %}
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ {% if admin.isGranted('LIST') %}
|
|
|
+ <a href="{{ admin.generateUrl('list')}}"><img src="{{ asset('bundles/sonataadmin/famfamfam/application_view_list.png') }}" />{% trans from 'SonataAdminBundle' %}link_list{% endtrans %}</a>
|
|
|
+ {% endif %}
|
|
|
+ </td>
|
|
|
</tr>
|
|
|
{% endfor %}
|
|
|
</tbody>
|