[Checkins] SVN: plone.z3cform/trunk/ add fieldtop and fieldbottom slots
David Glick
davidglick at onenw.org
Tue Mar 16 21:30:49 EDT 2010
Log message for revision 110005:
add fieldtop and fieldbottom slots
Changed:
U plone.z3cform/trunk/README.txt
U plone.z3cform/trunk/docs/HISTORY.txt
U plone.z3cform/trunk/plone/z3cform/templates/macros.pt
-=-
Modified: plone.z3cform/trunk/README.txt
===================================================================
--- plone.z3cform/trunk/README.txt 2010-03-16 22:48:08 UTC (rev 110004)
+++ plone.z3cform/trunk/README.txt 2010-03-17 01:30:49 UTC (rev 110005)
@@ -241,7 +241,8 @@
defined in the TAL scope, referring to a z3c.form widget instance. It will
output an error message if there is a field validation error, a label,
a marker to say whether the field is required, the field description, and
- the widget itself (normally just an ``<input />`` element).
+ the widget itself (normally just an ``<input />`` element). It also defines
+ two slots, ``fieldtop`` and ``fieldbottom``, which wrap the field.
* ``actions`` renders all actions on the form. This normally results in a row
of ``<input type="submit" ... />`` elements.
Modified: plone.z3cform/trunk/docs/HISTORY.txt
===================================================================
--- plone.z3cform/trunk/docs/HISTORY.txt 2010-03-16 22:48:08 UTC (rev 110004)
+++ plone.z3cform/trunk/docs/HISTORY.txt 2010-03-17 01:30:49 UTC (rev 110005)
@@ -5,7 +5,7 @@
-------------------
* Added slots to the ``titlelessform`` macro. See ``README.txt`` for details.
- [optilude]
+ [optilude, davisagli]
* Remove the distinction between wrapped and unwrapped subforms. A subform is
always wrapped by the form that contains it, and can use a Zope 3 page
Modified: plone.z3cform/trunk/plone/z3cform/templates/macros.pt
===================================================================
--- plone.z3cform/trunk/plone/z3cform/templates/macros.pt 2010-03-16 22:48:08 UTC (rev 110004)
+++ plone.z3cform/trunk/plone/z3cform/templates/macros.pt 2010-03-17 01:30:49 UTC (rev 110005)
@@ -36,6 +36,7 @@
tal:omit-tag="hidden">
<metal:field define-macro="field">
+ <metal:field-slot define-slot="fieldtop" />
<div class="field"
tal:define="error widget/error"
tal:attributes="class python:'field' + (error and ' error' or '')">
@@ -69,6 +70,7 @@
<input type="text" tal:replace="structure widget/render" />
</div>
</div>
+ <metal:field-slot define-slot="fieldbottom" />
</metal:field>
</div>
More information about the checkins
mailing list