[Zope3-checkins] CVS: Zope3/src/zope/app/browser/component - interfacewidget.py:1.19
Steve Alexander
steve@cat-box.net
Thu, 16 Jan 2003 14:50:58 -0500
Update of /cvs-repository/Zope3/src/zope/app/browser/component
In directory cvs.zope.org:/tmp/cvs-serv9670/src/zope/app/browser/component
Modified Files:
interfacewidget.py
Log Message:
Changed form layout from using tables to using divs.
=== Zope3/src/zope/app/browser/component/interfacewidget.py 1.18 => 1.19 ===
--- Zope3/src/zope/app/browser/component/interfacewidget.py:1.18 Thu Jan 9 09:13:00 2003
+++ Zope3/src/zope/app/browser/component/interfacewidget.py Thu Jan 16 14:50:25 2003
@@ -108,7 +108,7 @@
return ('<input type="hidden" name="%s" value="%s" />'
% (self.name, interfaceToName(data))
)
-
+
def label(self):
return '<label for="%s">%s</label>' % (
self.name,
@@ -116,7 +116,8 @@
)
def row(self):
- return "<td>%s</td><td>%s</td>" % (self.label(), self())
+ return '<div class="label">%s</div><div class="field">%s</div>' % (
+ self.label(), self())
# --- deprecated methods of IBrowserWidget
@@ -291,7 +292,7 @@
)
count += 1
return ''.join(elements)
-
+
def label(self):
return '<label for="%s">%s</label>' % (
self.name,
@@ -299,7 +300,8 @@
)
def row(self):
- return "<td>%s</td><td>%s</td>" % (self.label(), self())
+ return '<div class="label">%s</div><div class="field">%s</div>' % (
+ self.label(), self())
# --- deprecated methods of IBrowserWidget