[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services - adapter_search.pt:1.3 add_adapter_config.pt:1.3 field.py:1.5 view_search.pt:1.3

Steve Alexander steve@cat-box.net
Thu, 16 Jan 2003 14:51:05 -0500


Update of /cvs-repository/Zope3/src/zope/app/browser/services
In directory cvs.zope.org:/tmp/cvs-serv9670/src/zope/app/browser/services

Modified Files:
	adapter_search.pt add_adapter_config.pt field.py 
	view_search.pt 
Log Message:
Changed form layout from using tables to using divs.



=== Zope3/src/zope/app/browser/services/adapter_search.pt 1.2 => 1.3 ===
--- Zope3/src/zope/app/browser/services/adapter_search.pt:1.2	Wed Dec 25 09:12:36 2002
+++ Zope3/src/zope/app/browser/services/adapter_search.pt	Thu Jan 16 14:50:32 2003
@@ -6,17 +6,12 @@
 <form action="." method="GET"
       tal:attributes="action request/URL"
       >
-  <table>
-    <tr tal:content="structure view/forInterface/row" />
-    <tr tal:content="structure view/providedInterface/row" />
-    <tr>
-      <td></td>
-      <td> 
+    <div class="row" tal:content="structure view/forInterface/row" />
+    <div class="row" tal:content="structure view/providedInterface/row" />
+      <div class="controls"> 
          <input type="submit" value="Refresh">
          <input type="submit" value="Search" name="SEARCH">
-     </td>
-    </tr>
-  </table>
+      </div>
 </form>
 
 <form action="." method="POST"


=== Zope3/src/zope/app/browser/services/add_adapter_config.pt 1.2 => 1.3 ===
--- Zope3/src/zope/app/browser/services/add_adapter_config.pt:1.2	Wed Dec 25 09:12:36 2002
+++ Zope3/src/zope/app/browser/services/add_adapter_config.pt	Thu Jan 16 14:50:32 2003
@@ -7,13 +7,12 @@
       tal:attributes="action request/URL"
       tal:condition="view/refresh"
       >
-  <table>
-     <tr tal:repeat="widget view/getWidgets"
+     <div class="row"
+         tal:repeat="widget view/getWidgets"
          tal:content="structure widget/row">
-       <td>Label</td>
-       <td>Roles</td>
-     </tr>
-  </table>
+       <div class="label">Label</div>
+       <div class="field">Roles</div>
+     </div>
   <input type="submit" value="Refresh" />
   <input type="submit" name="FINISH" value="Finish" />
 </form>


=== Zope3/src/zope/app/browser/services/field.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/browser/services/field.py:1.4	Sun Jan 12 16:22:15 2003
+++ Zope3/src/zope/app/browser/services/field.py	Thu Jan 16 14:50:32 2003
@@ -161,7 +161,8 @@
         return '<label for="%s">%s</label>' % (self.name, self.title)
 
     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
 


=== Zope3/src/zope/app/browser/services/view_search.pt 1.2 => 1.3 ===
--- Zope3/src/zope/app/browser/services/view_search.pt:1.2	Wed Dec 25 09:12:36 2002
+++ Zope3/src/zope/app/browser/services/view_search.pt	Thu Jan 16 14:50:32 2003
@@ -6,24 +6,21 @@
 <form action="." method="GET"
       tal:attributes="action request/URL"
       >
-  <table>
-    <tr tal:content="structure view/forInterface/row" />
-    <tr tal:content="structure view/presentationType/row" />
-    <tr>
-      <td></td>
-      <td> 
+    <div class="row" tal:content="structure view/forInterface/row" />
+    <div class="row" tal:content="structure view/presentationType/row" />
+    <div class="row">
+    <div class="controls"> 
          <input type="submit" value="Refresh">
          <input type="submit" value="Search" name="SEARCH">
-     </td>
-    </tr>
-  </table>
+     </div>
+    </div>
 </form>
 
 <form action="." method="POST"
       tal:attributes="action request/URL"
       tal:condition="request/SEARCH|nothing"
       >
-  <table      
+  <table
       tal:define="layer not:request/field.layer|nothing;
                   viewName not:request/field.viewName|nothing;
                   "