فهرست منبع

tweaked identifier displaying to better readibility

Timothée Barray 14 سال پیش
والد
کامیت
8372165dc2
1فایلهای تغییر یافته به همراه3 افزوده شده و 5 حذف شده
  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') %}
 {% if field_description.getOption('identifier') %}
     <a href="{{ admin.generateUrl('edit', {'id': object.id}) }}">
     <a href="{{ admin.generateUrl('edit', {'id': object.id}) }}">
-{% endif %}
-
-{% block field%}{{ value }}{% endblock %}
-
-{% if field_description.getOption('identifier') %}
+        {% block field %}{{ value }}{% endblock %}
     </a>
     </a>
+{% else %}
+    {{ block('field') }}
 {% endif %}
 {% endif %}