Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docs/main/Extensions/Crud/index.rst #22

Merged
merged 1 commit into from Mar 25, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/main/Extensions/Crud/index.rst
Expand Up @@ -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'],
Expand All @@ -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.
Expand Down