From 7d8cb202aab1a886dacf3608bc56fd9ca2b636e0 Mon Sep 17 00:00:00 2001 From: pihentagy Date: Mon, 11 Feb 2013 15:45:40 +0100 Subject: [PATCH] Update docs/main/Extensions/Crud/index.rst --- docs/main/Extensions/Crud/index.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/main/Extensions/Crud/index.rst b/docs/main/Extensions/Crud/index.rst index dc6686c..e645b49 100644 --- a/docs/main/Extensions/Crud/index.rst +++ b/docs/main/Extensions/Crud/index.rst @@ -88,6 +88,8 @@ add utility methods on the fly:: class TicketCrudController(EasyCrudRestController): model = Ticket + title = "My admin title" + __form_options__ = { '__hide_fields__':['_id', 'status', 'sprint'], '__field_order__':['title', 'description'], @@ -101,6 +103,9 @@ add utility methods on the fly:: 'sprint':('sprint', lambda ticket:ticket.sprint.project.last_sprint), } +The ``title`` option provides a way to customize the title displayed in the titlebar +of your browser. + The ``__form_options__`` dictionary will permit to tune the forms configuration. The specified options will be applied to both the form used to create new entities and to edit the existing ones.