[Checkins] SVN: plone.z3cform/trunk/ Define 'hidden' within field macro.
Laurence Rowe
l at lrowe.co.uk
Tue May 3 14:07:16 EDT 2011
Log message for revision 121522:
Define 'hidden' within field macro.
Changed:
U plone.z3cform/trunk/docs/HISTORY.txt
U plone.z3cform/trunk/plone/z3cform/templates/macros.pt
-=-
Modified: plone.z3cform/trunk/docs/HISTORY.txt
===================================================================
--- plone.z3cform/trunk/docs/HISTORY.txt 2011-05-03 13:13:36 UTC (rev 121521)
+++ plone.z3cform/trunk/docs/HISTORY.txt 2011-05-03 18:07:15 UTC (rev 121522)
@@ -4,6 +4,9 @@
0.7.4 - unreleased
------------------
+* Define 'hidden' within field macro.
+ [elro]
+
* Ignore "form.widgets." if ++widget++ path begins with it.
[lentinj]
Modified: plone.z3cform/trunk/plone/z3cform/templates/macros.pt
===================================================================
--- plone.z3cform/trunk/plone/z3cform/templates/macros.pt 2011-05-03 13:13:36 UTC (rev 121521)
+++ plone.z3cform/trunk/plone/z3cform/templates/macros.pt 2011-05-03 18:07:15 UTC (rev 121522)
@@ -43,7 +43,8 @@
<metal:field-slot define-slot="field">
<metal:field define-macro="field">
<div class="field"
- tal:define="error widget/error"
+ tal:define="error widget/error;
+ hidden python:widget.mode == 'hidden';"
tal:attributes="class python:'field' + (error and ' error' or '')">
<label for=""
tal:attributes="for widget/id"
More information about the checkins
mailing list