__meta = {
form: [
{
heading: <string or false, default to false>,
controls: {
save: <string for saving the form>,
cancel: <string for resetting>
}
collapsible: <boolean, default to false>,
collapsed: <boolean, default to false>,
descriptions: <boolean, default to true>,
fields: [<one or more var names, in the order they should appear on the form>],
}
]
}
heading: if a string, inject as form fieldset heading
controls: if specified, this will place the form save/cancel buttons in this section. The value must be an object with string save and cancel properties,
collapsible: if true, inject enough markup to effect pure-CSS collapsing
collapsed: if true, and generate "pre-collapsed" markup. Note that collapsed: true implies collapsible: true, even if that field is present.
descriptions: if note false, show field descriptions with the form control for them
fields: the list of model fields that should be in this field set, in order or appearance.
Note that if there is a __meta.form, any fields not mentioned in the form array will not end up in the actual form markup.
Specifically:
heading
: if a string, inject as form fieldset headingcontrols
: if specified, this will place the form save/cancel buttons in this section. The value must be an object with stringsave
andcancel
properties,collapsible
: if true, inject enough markup to effect pure-CSS collapsingcollapsed
: if true, and generate "pre-collapsed" markup. Note thatcollapsed: true
impliescollapsible: true
, even if that field is present.descriptions
: if note false, show field descriptions with the form control for themfields
: the list of model fields that should be in this field set, in order or appearance.Note that if there is a
__meta.form
, any fields not mentioned in the form array will not end up in the actual form markup.