瀏覽代碼

Update Resources/doc/reference/templates.rst

sjopet 13 年之前
父節點
當前提交
b35b9d9392
共有 1 個文件被更改,包括 4 次插入0 次删除
  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
             edit:    SonataAdminBundle:CRUD:edit.html.twig
             history:  SonataAdminBundle:CRUD:history.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 :
 Usage of each template :
 
 
@@ -27,6 +30,7 @@ Usage of each template :
 * show : the template to use for the show action
 * show : the template to use for the show action
 * edit : the template to use for the edit and create action
 * edit : the template to use for the edit and create action
 * history : the template to use for the history / audit 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.
 The default values will be set only if the ``Admin::setTemplates`` is not called by the Container.