|
@@ -10,17 +10,10 @@ 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.route.name == 'edit' and admin.hasroute('edit') and admin.isGranted('EDIT') %}
|
|
|
|
- <a href="{{ admin.generateObjectUrl('edit', object) }}">
|
|
|
|
- {% elseif admin.hasroute('show') %}
|
|
|
|
- <a href="{{ admin.generateObjectUrl('show', object) }}">
|
|
|
|
- {% endif %}
|
|
|
|
-
|
|
|
|
- {% block field %}{{ value }}{% endblock %}
|
|
|
|
|
|
+ {% if field_description.options.identifier is defined and admin.isGranted(field_description.options.route.name|upper) and admin.hasRoute(field_description.options.route.name) %}
|
|
|
|
+ <a href="{{ admin.generateObjectUrl(field_description.options.route.name, object, field_description.options.route.parameters) }}">
|
|
|
|
+ {%- block field %}{{ value }}{% endblock -%}
|
|
</a>
|
|
</a>
|
|
-
|
|
|
|
{% else %}
|
|
{% else %}
|
|
{{ block('field') }}
|
|
{{ block('field') }}
|
|
{% endif %}
|
|
{% endif %}
|