[Zope3-checkins] CVS: Zope3/src/zope/app/form/browser -
widget_macros.pt:1.2
Garrett Smith
garrett at mojave-corp.com
Fri May 7 15:45:10 EDT 2004
Update of /cvs-repository/Zope3/src/zope/app/form/browser
In directory cvs.zope.org:/tmp/cvs-serv32564/src/zope/app/form/browser
Modified Files:
widget_macros.pt
Log Message:
Added widget_row macro, which can be used whenever widget.row()
would otherwise be needed.
=== Zope3/src/zope/app/form/browser/widget_macros.pt 1.1 => 1.2 ===
--- Zope3/src/zope/app/form/browser/widget_macros.pt:1.1 Mon May 3 22:01:24 2004
+++ Zope3/src/zope/app/form/browser/widget_macros.pt Fri May 7 15:45:10 2004
@@ -2,14 +2,20 @@
<body>
<metal:block define-macro="widget_rows">
<div class="row" tal:repeat="widget view/widgets">
- <div class="label" tal:content="structure widget/label">Name</div>
- <div class="field" tal:content="structure widget">
- <input type="text" style="width:100%"/>
- </div>
- <div class="error" tal:define="error widget/error"
- tal:condition="error" tal:content="structure error">
- The Error
- </div>
+ <metal:block define-macro="widget_row">
+ <div class="label">
+ <label for="field.name" title="The widget's hint"
+ tal:attributes="for widget/name; title widget/hint"
+ tal:content="widget/label">The Label</label>
+ </div>
+ <div class="field" tal:content="structure widget">
+ <input type="text" style="width:100%"/>
+ </div>
+ <div class="error" tal:define="error widget/error"
+ tal:condition="error" tal:content="structure error">
+ The Error
+ </div>
+ </metal:block>
</div>
</metal:block>
</body>
More information about the Zope3-Checkins
mailing list