Pārlūkot izejas kodu

Add an "identifier" class on list identifier link

Allow to customize identifier link via css.
Emmanuel Vella 12 gadi atpakaļ
vecāks
revīzija
775c3dcc97
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      Resources/views/CRUD/base_list_field.html.twig

+ 1 - 1
Resources/views/CRUD/base_list_field.html.twig

@@ -16,7 +16,7 @@ file that was distributed with this source code.
         and admin.isGranted(field_description.options.route.name == 'show' ? 'VIEW' : field_description.options.route.name|upper, object)
         and admin.hasRoute(field_description.options.route.name)
     %}
-        <a href="{{ admin.generateObjectUrl(field_description.options.route.name, object, field_description.options.route.parameters) }}">
+        <a class="identifier" href="{{ admin.generateObjectUrl(field_description.options.route.name, object, field_description.options.route.parameters) }}">
             {%- block field %}{{ value }}{% endblock -%}
         </a>
     {% else %}