Selaa lähdekoodia

Update Resources/doc/reference/templates.rst

sjopet 13 vuotta sitten
vanhempi
commit
b35b9d9392
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 4 0
      Resources/doc/reference/templates.rst

+ 4 - 0
Resources/doc/reference/templates.rst

@@ -17,6 +17,9 @@ By default, an Admin class uses a set of templates, it is possible to tweak the
             edit:    SonataAdminBundle:CRUD:edit.html.twig
             history:  SonataAdminBundle:CRUD:history.html.twig
 
+            # default block templates, these should extend the SonataBlockBundle:Block:block_base.html.twig 
+            list_block: SonataAdminBundle:Block:block_admin_list.html.twig
+
 
 Usage of each template :
 
@@ -27,6 +30,7 @@ Usage of each template :
 * show : the template to use for the show action
 * edit : the template to use for the edit and create action
 * history : the template to use for the history / audit action
+* list_block : the template used for the admin blocks on the dashboard
 
 The default values will be set only if the ``Admin::setTemplates`` is not called by the Container.