diff --git a/doc/version.txt b/doc/version.txt index d2b13eb..ef5e445 100644 --- a/doc/version.txt +++ b/doc/version.txt @@ -1 +1 @@ -0.6.4 +0.6.5 diff --git a/gen/__init__.py b/gen/__init__.py index 6f33242..a2cbf81 100644 --- a/gen/__init__.py +++ b/gen/__init__.py @@ -95,7 +95,7 @@ class Group: hasLabel=True, hasDescr=False, hasHelp=False, hasHeaders=False, group=None, colspan=1, align='center', valign='top', css_class='', master=None, masterValue=None, - cellpadding=1, cellspacing=1): + cellpadding=1, cellspacing=1, cellgap='0.6em'): self.name = name # In its simpler form, field "columns" below can hold a list or tuple # of column widths expressed as strings, that will be given as is in @@ -134,6 +134,10 @@ class Group: self.valign = valign self.cellpadding = cellpadding self.cellspacing = cellspacing + # Beyond standard cellpadding and cellspacing, cellgap can define an + # additional horizontal gap between cells in a row. So this value does + # not add space before the first cell or after the last one. + self.cellgap = cellgap if style == 'tabs': # Group content will be rendered as tabs. In this case, some # param combinations have no sense. diff --git a/gen/plone25/model.py b/gen/plone25/model.py index 7f77615..3e6d66d 100644 --- a/gen/plone25/model.py +++ b/gen/plone25/model.py @@ -93,7 +93,7 @@ class User(ModelClass): 'password2', 'roles'] # All methods defined below are fake. Real versions are in the wrapper. title = String(show=False, indexed=True) - gm = {'group': 'main', 'multiplicity': (1,1)} + gm = {'group': 'main', 'multiplicity': (1,1), 'width': 25} name = String(**gm) firstName = String(**gm) def showLogin(self): pass diff --git a/gen/plone25/skin/page.pt b/gen/plone25/skin/page.pt index 7c64493..099c7a0 100644 --- a/gen/plone25/skin/page.pt +++ b/gen/plone25/skin/page.pt @@ -518,12 +518,12 @@ - + Input field allowing to enter a comment before triggering a transitionButtons for triggering transitions @@ -558,7 +558,7 @@ Information that is common to all tabs (object title, state, etc)
- +
- + Title and state + tal:condition="descrLabel/strip" align="left"> Content type description - + Object history - + Workflow-related information and actions - +
@@ -567,11 +567,11 @@
Creator and last modification date Plus/minus icon for accessing history @@ -598,7 +598,7 @@
@@ -611,7 +611,7 @@
diff --git a/gen/plone25/skin/required.gif b/gen/plone25/skin/required.gif new file mode 100644 index 0000000..c54b811 Binary files /dev/null and b/gen/plone25/skin/required.gif differ diff --git a/gen/plone25/skin/required.png b/gen/plone25/skin/required.png deleted file mode 100644 index ac8daa3..0000000 Binary files a/gen/plone25/skin/required.png and /dev/null differ diff --git a/gen/plone25/skin/space.gif b/gen/plone25/skin/space.gif index 8dc4bb1..51f8464 100644 Binary files a/gen/plone25/skin/space.gif and b/gen/plone25/skin/space.gif differ diff --git a/gen/plone25/skin/warning.png b/gen/plone25/skin/warning.png index 1465cd5..fb2a19b 100644 Binary files a/gen/plone25/skin/warning.png and b/gen/plone25/skin/warning.png differ diff --git a/gen/plone25/skin/warning_no.gif b/gen/plone25/skin/warning_no.gif new file mode 100644 index 0000000..dda7904 Binary files /dev/null and b/gen/plone25/skin/warning_no.gif differ diff --git a/gen/plone25/skin/warning_no.png b/gen/plone25/skin/warning_no.png deleted file mode 100644 index 9edbbb7..0000000 Binary files a/gen/plone25/skin/warning_no.png and /dev/null differ diff --git a/gen/plone25/skin/widgets/show.pt b/gen/plone25/skin/widgets/show.pt index 1ffa7a1..8241fa1 100644 --- a/gen/plone25/skin/widgets/show.pt +++ b/gen/plone25/skin/widgets/show.pt @@ -28,16 +28,7 @@
- - - - - - - - - + style python: test(repeat['cell'].end, '', 'padding-right: 0.4em')">
@@ -138,6 +129,7 @@ It is exclusively called by macro "group" above.
+ style python: test(repeat['widget'].number() != len(widgetRow), 'padding-right: %s'%cellgap, '')"> @@ -183,31 +175,17 @@
Displays a field label. - - - + Displays a field description. - - + Displays a field help. - - - - - + Displays validation-error-related info about a field. - - - - - - + Displays the fact that a field is required. - + diff --git a/gen/plone25/templates/Styles.css.dtml b/gen/plone25/templates/Styles.css.dtml index e196927..0491dab 100644 --- a/gen/plone25/templates/Styles.css.dtml +++ b/gen/plone25/templates/Styles.css.dtml @@ -6,7 +6,7 @@ textarea { width: 99%; } #portal-breadcrumbs { display: none; } #importedElem { color: grey; font-style: italic; } -label { font-weight: bold; font-style: italic; line-height: 1.4em;} +label { font-weight: bold; font-style: italic; line-height: 1.4em; font-size: 92%;} .discreet { font-size: 94%; } .appyList { line-height: 1.1em; margin: 0 0 0.5em 1.2em; padding: 0; } .appyBullet { margin: 0; }