123456789101112131415161718192021222324252627 |
- {#
- This file is part of the Sonata package.
- (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
- For the full copyright and license information, please view the LICENSE
- 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) }}">
- {% if field_description.options.identifier is defined and admin.isGranted('VIEW', object) %}
- {% if admin.hasroute('edit') and admin.isGranted('EDIT', object) %}
- <a href="{{ admin.generateObjectUrl('edit', object) }}">
- {% elseif admin.hasroute('show') and admin.show|length > 0 %}
- <a href="{{ admin.generateObjectUrl('show', object) }}">
- {% endif %}
- {% block field %}{{ value }}{% endblock %}
- </a>
- {% else %}
- {{ block('field') }}
- {% endif %}
- </td>
|