Przeglądaj źródła

tweaked identifier displaying to better readibility

Timothée Barray 14 lat temu
rodzic
commit
8372165dc2
1 zmienionych plików z 3 dodań i 5 usunięć
  1. 3 5
      Resources/views/CRUD/base_list_field.twig.html

+ 3 - 5
Resources/views/CRUD/base_list_field.twig.html

@@ -11,10 +11,8 @@ file that was distributed with this source code.
 
 {% if field_description.getOption('identifier') %}
     <a href="{{ admin.generateUrl('edit', {'id': object.id}) }}">
-{% endif %}
-
-{% block field%}{{ value }}{% endblock %}
-
-{% if field_description.getOption('identifier') %}
+        {% block field %}{{ value }}{% endblock %}
     </a>
+{% else %}
+    {{ block('field') }}
 {% endif %}