[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form - add.pt:1.10
addwizard.py:1.11 edit.pt:1.12
Sidnei da Silva
cvs-admin at zope.org
Wed Oct 22 15:17:10 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/browser/form
In directory cvs.zope.org:/tmp/cvs-serv4373
Modified Files:
add.pt addwizard.py edit.pt
Log Message:
Added some div's to allow for fluid multi-column form layout. Thanks for
Michael Zeltner for the tip.
=== Zope3/src/zope/app/browser/form/add.pt 1.9 => 1.10 ===
--- Zope3/src/zope/app/browser/form/add.pt:1.9 Mon Aug 25 10:14:06 2003
+++ Zope3/src/zope/app/browser/form/add.pt Wed Oct 22 15:17:09 2003
@@ -19,7 +19,7 @@
tal:content="status" />
<p tal:condition="view/errors" i18n:translate="">
- There are <strong tal:content="python:len(view.errors)"
+ There are <strong tal:content="python:len(view.errors)"
i18n:name="num_errors">6</strong> input errors.
</p>
@@ -35,27 +35,30 @@
<div class="label"><input type="text" style="width:100%" /></div>
</div>
<div class="row"
- metal:define-macro="widget_rows" tal:repeat="widget view/widgets"
- tal:content="structure widget/row">
- <div class="label">Name</div>
- <div class="field"><input type="text" style="width:100%" /></div>
- </div>
+ metal:define-macro="widget_rows" tal:repeat="widget view/widgets"
+ tal:content="structure widget/row">
+ <div class="label">Name</div>
+ <div class="field"><input type="text" style="width:100%"/>
+ </div>
+ </div>
+ <div class="separator"></div>
<div class="row"
metal:define-slot="extra_bottom" tal:replace="nothing">
<div class="label">Extra bottom</div>
<div class="field"><input type="text" style="width:100%" /></div>
</div>
-
+ <div class="separator"></div>
</div>
<div class="row">
<div class="controls">
- <input type="submit" value="Refresh"
+ <input type="submit" value="Refresh"
i18n:attributes="value refresh-button" />
- <input type="submit" name="UPDATE_SUBMIT" value="Submit"
+ <input type="submit" name="UPDATE_SUBMIT" value="Submit"
i18n:attributes="value submit-button"/>
</div>
</div>
+ <div class="separator"></div>
</form>
=== Zope3/src/zope/app/browser/form/addwizard.py 1.10 => 1.11 ===
--- Zope3/src/zope/app/browser/form/addwizard.py:1.10 Tue Aug 12 08:47:55 2003
+++ Zope3/src/zope/app/browser/form/addwizard.py Wed Oct 22 15:17:09 2003
@@ -61,7 +61,7 @@
"""
# This code originally from add.py's createAndAdd method
-
+
args = []
for name in self._arguments:
args.append(data[name])
=== Zope3/src/zope/app/browser/form/edit.pt 1.11 => 1.12 ===
--- Zope3/src/zope/app/browser/form/edit.pt:1.11 Fri Aug 15 20:42:49 2003
+++ Zope3/src/zope/app/browser/form/edit.pt Wed Oct 22 15:17:09 2003
@@ -42,12 +42,13 @@
<div class="label">Name</div>
<div class="field"><input type="text" style="width:100%" /></div>
</div>
+ <div class="separator"></div>
<div class="row"
metal:define-slot="extra_bottom" tal:replace="nothing">
<div class="label">Extra bottom</div>
<div class="field"><input type="text" style="width:100%" /></div>
</div>
-
+ <div class="separator"></div>
</div>
<div class="row">
@@ -58,6 +59,7 @@
i18n:attributes="value submit-button"/>
</div>
</div>
+ <div class="separator"></div>
</form>
More information about the Zope3-Checkins
mailing list