|
@@ -12,7 +12,7 @@ file that was distributed with this source code.
|
|
<td class="sonata-ba-list-field sonata-ba-list-field-{{ field_description.type }}" objectId="{{ admin.id(object) }}">
|
|
<td class="sonata-ba-list-field sonata-ba-list-field-{{ field_description.type }}" objectId="{{ admin.id(object) }}">
|
|
{% if field_description.options.identifier is defined and admin.isGranted(['EDIT', 'SHOW']) %}
|
|
{% if field_description.options.identifier is defined and admin.isGranted(['EDIT', 'SHOW']) %}
|
|
|
|
|
|
- {% if admin.hasroute('edit') and admin.isGranted('EDIT') %}
|
|
|
|
|
|
+ {% if field_description.options.route == 'edit' and admin.hasroute('edit') and admin.isGranted('EDIT') %}
|
|
<a href="{{ admin.generateObjectUrl('edit', object) }}">
|
|
<a href="{{ admin.generateObjectUrl('edit', object) }}">
|
|
{% elseif admin.hasroute('show') %}
|
|
{% elseif admin.hasroute('show') %}
|
|
<a href="{{ admin.generateObjectUrl('show', object) }}">
|
|
<a href="{{ admin.generateObjectUrl('show', object) }}">
|
|
@@ -24,4 +24,4 @@ file that was distributed with this source code.
|
|
{% else %}
|
|
{% else %}
|
|
{{ block('field') }}
|
|
{{ block('field') }}
|
|
{% endif %}
|
|
{% endif %}
|
|
-</td>
|
|
|
|
|
|
+</td>
|