[gen] Added some default page and field layouts.
This commit is contained in:
parent
4d9823a59a
commit
d3e2478d6b
|
@ -372,6 +372,7 @@ class Type:
|
||||||
# field, keyed by layoutType.
|
# field, keyed by layoutType.
|
||||||
cssFiles = {}
|
cssFiles = {}
|
||||||
jsFiles = {}
|
jsFiles = {}
|
||||||
|
dLayouts = 'lrv-d-f'
|
||||||
|
|
||||||
def __init__(self, validator, multiplicity, index, default, optional,
|
def __init__(self, validator, multiplicity, index, default, optional,
|
||||||
editDefault, show, page, group, layouts, move, indexed,
|
editDefault, show, page, group, layouts, move, indexed,
|
||||||
|
|
|
@ -222,6 +222,10 @@ defaultPageLayouts = {
|
||||||
# A layout for pages, containing the page summary.
|
# A layout for pages, containing the page summary.
|
||||||
summaryPageLayouts = {'view': Table('s-n!-w|-b|', align="center"),
|
summaryPageLayouts = {'view': Table('s-n!-w|-b|', align="center"),
|
||||||
'edit': Table('w|-b|', width=None)}
|
'edit': Table('w|-b|', width=None)}
|
||||||
|
widePageLayouts = {
|
||||||
|
'view': Table('n!-w|-b|', align="center"),
|
||||||
|
'edit': Table('w|-b|')
|
||||||
|
}
|
||||||
# The default layout for fields. Alternative layouts may exist and are declared
|
# The default layout for fields. Alternative layouts may exist and are declared
|
||||||
# as static attributes of the concerned Type subclass.
|
# as static attributes of the concerned Type subclass.
|
||||||
defaultFieldLayouts = {'edit': 'lrv-f'}
|
defaultFieldLayouts = {'edit': 'lrv-f'}
|
||||||
|
|
Loading…
Reference in a new issue