Browse Source

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

Roger Llopart Pla 13 năm trước cách đây
mục cha
commit
c0fa0f588c
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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 %}