[Checkins] SVN: z3c.formui/trunk/src/z3c/formui/ Make sure we use
the id for the "for" attribute of the label and not the
Stephan Richter
srichter at cosmos.phy.tufts.edu
Sun Jun 3 13:00:33 EDT 2007
Log message for revision 76259:
Make sure we use the id for the "for" attribute of the label and not the
name, now that they are different.
Changed:
U z3c.formui/trunk/src/z3c/formui/div-form.pt
U z3c.formui/trunk/src/z3c/formui/table-form.pt
-=-
Modified: z3c.formui/trunk/src/z3c/formui/div-form.pt
===================================================================
--- z3c.formui/trunk/src/z3c/formui/div-form.pt 2007-06-03 16:58:18 UTC (rev 76258)
+++ z3c.formui/trunk/src/z3c/formui/div-form.pt 2007-06-03 17:00:33 UTC (rev 76259)
@@ -33,7 +33,7 @@
<div class="row" tal:repeat="widget view/widgets/values">
<metal:block define-macro="widget-row">
<div class="label">
- <label tal:attributes="for widget/name">
+ <label tal:attributes="for widget/id">
<span i18n:translate=""
tal:content="widget/label">label</span>
<span class="required" tal:condition="widget/required">*</span>
Modified: z3c.formui/trunk/src/z3c/formui/table-form.pt
===================================================================
--- z3c.formui/trunk/src/z3c/formui/table-form.pt 2007-06-03 16:58:18 UTC (rev 76258)
+++ z3c.formui/trunk/src/z3c/formui/table-form.pt 2007-06-03 17:00:33 UTC (rev 76259)
@@ -40,7 +40,7 @@
<tal:block omit-tag="" repeat="widget view/widgets/values">
<tr metal:define-macro="formrow" class="row">
<td class="label" metal:define-macro="labelcell">
- <label tal:attributes="for widget/name">
+ <label tal:attributes="for widget/id">
<span i18n:translate=""
tal:content="widget/label"> label </span>
<span class="required" tal:condition="widget/required"> * </span>
More information about the Checkins
mailing list