[Zope3-checkins] CVS: Zope3/src/zope/app/workflow/stateful/browser
- contentworkflow_registry.pt:1.2
Garrett Smith
garrett at mojave-corp.com
Fri May 7 15:36:37 EDT 2004
Update of /cvs-repository/Zope3/src/zope/app/workflow/stateful/browser
In directory cvs.zope.org:/tmp/cvs-serv30421/src/zope/app/workflow/stateful/browser
Modified Files:
contentworkflow_registry.pt
Log Message:
Deleted label and row methods from browser widget. Developers can
reuse 'row' logic via a new form macro 'widget_row'. E.g. instead of:
<tal:block content="struct widget/row" />
you'd use:
<metal:block use-macro="context/@@form_macros/widget_row" />
Note that 'widget' must be defined where the macro is used.
=== Zope3/src/zope/app/workflow/stateful/browser/contentworkflow_registry.pt 1.1 => 1.2 ===
--- Zope3/src/zope/app/workflow/stateful/browser/contentworkflow_registry.pt:1.1 Sat Apr 24 19:18:24 2004
+++ Zope3/src/zope/app/workflow/stateful/browser/contentworkflow_registry.pt Fri May 7 15:36:36 2004
@@ -53,10 +53,15 @@
</div>
<h3 i18n:translate="">Add new Mapping</h3>
- <div class="row"
- tal:content="structure view/iface_widget/row" />
- <div class="row"
- tal:content="structure view/name_widget/row" />
+
+ <div class="row" tal:define="widget nocall:view/iface_widget">
+ <metal:block use-macro="context/@@form_macros/widget_row" />
+ </div>
+
+ <div class="row" tal:define="widget nocall:view/name_widget">
+ <metal:block use-macro="context/@@form_macros/widget_row" />
+ </div>
+
<div class="row">
<div class="controls">
<input type="submit" value="Add Mappings" name="ADD"
More information about the Zope3-Checkins
mailing list