Pārlūkot izejas kodu

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

Roger Llopart Pla 13 gadi atpakaļ
vecāks
revīzija
c0fa0f588c
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  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 %}