فهرست منبع

Used the elements variable inside the show action template, instead of using admin.show.

Roger Llopart Pla 13 سال پیش
والد
کامیت
c0fa0f588c
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      Resources/views/CRUD/base_show.html.twig

+ 2 - 2
Resources/views/CRUD/base_show.html.twig

@@ -46,8 +46,8 @@ file that was distributed with this source code.
 
                 {% for field_name in view_group.fields %}
                     <tr class="sonata-ba-view-container">
-                        {% if admin.show[field_name] is defined %}
-                            {{ admin.show[field_name]|render_view_element(object) }}
+                        {% if elements[field_name] is defined %}
+                            {{ elements[field_name]|render_view_element(object) }}
                         {% endif %}
                     </tr>
                 {% endfor %}