base_list_field.twig.html 602 B

1234567891011121314151617181920
  1. {#
  2. This file is part of the Sonata package.
  3. (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  4. For the full copyright and license information, please view the LICENSE
  5. file that was distributed with this source code.
  6. #}
  7. <td class="sonata-ba-list-field sonata-ba-list-field-{{ field_description.type }}" object_id="{{ object.id }}">
  8. {% if field_description.options.identifier is defined %}
  9. <a href="{{ admin.generateUrl('edit', {'id': object.id}) }}">
  10. {% block field %}{{ value }}{% endblock %}
  11. </a>
  12. {% else %}
  13. {{ block('field') }}
  14. {% endif %}
  15. </td>