[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/form/browser/ Reindent file a bit. Add missing separator div to conform to the add/edit forms style.

Sidnei da Silva sidnei at awkly.org
Sat Jul 3 08:03:40 EDT 2004


Log message for revision 26094:
Reindent file a bit. Add missing separator div to conform to the add/edit forms style.


-=-
Modified: Zope3/trunk/src/zope/app/form/browser/add.pt
===================================================================
--- Zope3/trunk/src/zope/app/form/browser/add.pt	2004-07-03 12:02:36 UTC (rev 26093)
+++ Zope3/trunk/src/zope/app/form/browser/add.pt	2004-07-03 12:03:40 UTC (rev 26094)
@@ -30,19 +30,19 @@
             <div class="label">Extra top</div>
             <div class="label"><input type="text" style="width:100%" /></div>
         </div>
-        
+
         <div metal:use-macro="context/@@form_macros/widget_rows" />
-                
+
         <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>
       <br/><br/>
       <div class="row">
@@ -52,13 +52,13 @@
           <input type='submit' value='Add' name='UPDATE_SUBMIT'
                  i18n:attributes='value add-button' />
           <span tal:condition="context/nameAllowed|nothing" tal:omit-tag="">
-               &nbsp;&nbsp;<b i18n:translate="">Object Name</b>&nbsp;&nbsp;    
+               &nbsp;&nbsp;<b i18n:translate="">Object Name</b>&nbsp;&nbsp;
               <input type='text' name='add_input_name'
-                     tal:attributes="value context/contentName" /> 
-          </span> 	             
+                     tal:attributes="value context/contentName" />
+          </span>
         </div>
       </div>
-     
+
       <div class="row" metal:define-slot="extra_buttons" tal:replace="nothing">
       </div>
 

Modified: Zope3/trunk/src/zope/app/form/browser/addwizard.pt
===================================================================
--- Zope3/trunk/src/zope/app/form/browser/addwizard.pt	2004-07-03 12:02:36 UTC (rev 26093)
+++ Zope3/trunk/src/zope/app/form/browser/addwizard.pt	2004-07-03 12:03:40 UTC (rev 26094)
@@ -1,79 +1,85 @@
-<tal:block condition="view/update"/><html 
-    metal:use-macro="context/@@standard_macros/page">
+<tal:block condition="view/update"/><html metal:use-macro="context/@@standard_macros/page">
 
-<body>
-<div metal:fill-slot="body">
+  <body>
+    <div metal:fill-slot="body">
 
-<div metal:define-macro="body">
+      <div metal:define-macro="body">
 
-  <form action="." tal:attributes="action request/URL" method="post"
-        enctype="multipart/form-data">
+        <form action="." tal:attributes="action request/URL" method="post"
+              enctype="multipart/form-data">
 
-    <div metal:define-macro="formbody">
+          <div metal:define-macro="formbody">
 
-      <h3 tal:condition="view/label"
-          tal:content="view/label"
-          metal:define-slot="heading"
-          >Edit something</h3>
+            <h3 tal:condition="view/label"
+                tal:content="view/label"
+                metal:define-slot="heading"
+                >Edit something</h3>
 
-      <p tal:condition="view/feedback" tal:content="view/feedback">
-        A feedback message to the user
-      </p>
+                <p tal:condition="view/feedback" tal:content="view/feedback">
+                  A feedback message to the user
+                </p>
 
-      <div tal:condition="view/errors">
-         <ul>
-            <li tal:repeat="error view/errors">
-               <strong tal:content="error/__class__">
-                  Error Type</strong>:
-               <span tal:content="error">Error text</span>
-            </li>
-         </ul>
-      </div>
+                <div tal:condition="view/errors">
+                  <ul>
+                    <li tal:repeat="error view/errors">
+                      <strong tal:content="error/__class__">
+                        Error Type</strong>:
+                        <span tal:content="error">Error text</span>
+                    </li>
+                  </ul>
+                </div>
 
-      <div metal:define-slot="extra_info" tal:replace="nothing">
-      </div>
+                <div metal:define-slot="extra_info" tal:replace="nothing">
+                </div>
 
-      <div class="row" metal:define-slot="extra_top" tal:replace="nothing">
-          <div class="label">Extra top</div>
-          <div class="label"><input type="text" style="width:100%" /></div>
-      </div>
-      
-      <div metal:use-macro="context/@@form_macros/widget_rows" />
+                <div class="row" metal:define-slot="extra_top"
+                     tal:replace="nothing">
+                  <div class="label">Extra top</div>
+                  <div class="label">
+                    <input type="text" style="width:100%" />
+                  </div>
+                </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 metal:use-macro="context/@@form_macros/widget_rows" />
 
-    </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="row">
-      <div class="controls">
-        <!-- <input type="submit" value="Refresh" 
-            i18n:attributes="value refresh-button" /> -->
-        <input tal:condition="view/show_previous"
-          type="submit" name="PREVIOUS_SUBMIT" value="Previous"
-          i18n:attributes="value previous-button" /> 
-        <input tal:condition="view/show_submit"
-          type="submit" name="UPDATE_SUBMIT" value="Submit" 
-          i18n:attributes="value submit-button"/>
-        <input tal:condition="view/show_next"
-          type="submit" name="NEXT_SUBMIT" value="Next"
-          i18n:attributes="value next-button" /> 
+          </div>
+
+          <div class="row">
+            <div class="controls">
+              <!--
+                <input type="submit" value="Refresh"
+                       i18n:attributes="value refresh-button"
+                       />
+              -->
+              <input tal:condition="view/show_previous"
+                     type="submit" name="PREVIOUS_SUBMIT" value="Previous"
+                     i18n:attributes="value previous-button" />
+              <input tal:condition="view/show_submit"
+                     type="submit" name="UPDATE_SUBMIT" value="Submit"
+                     i18n:attributes="value submit-button"/>
+              <input tal:condition="view/show_next"
+                     type="submit" name="NEXT_SUBMIT" value="Next"
+                     i18n:attributes="value next-button" />
+            </div>
+          </div>
+          <div class="separator"></div>
+
+          <div tal:replace="structure view/renderHidden">
+            <!-- type=hidden input controls for passing state without session -->
+            <input type="hidden" name="example" value="foo" />
+          </div>
+        </form>
       </div>
     </div>
+  </body>
 
-    <div tal:replace="structure view/renderHidden">
-      <!-- type=hidden input controls for passing state without session -->
-      <input type="hidden" name="example" value="foo" />
-    </div>
-
-  </form>
-
-</div>
-
-</div>
-</body>
-
 </html>

Modified: Zope3/trunk/src/zope/app/form/browser/editwizard.pt
===================================================================
--- Zope3/trunk/src/zope/app/form/browser/editwizard.pt	2004-07-03 12:02:36 UTC (rev 26093)
+++ Zope3/trunk/src/zope/app/form/browser/editwizard.pt	2004-07-03 12:03:40 UTC (rev 26094)
@@ -1,66 +1,66 @@
-<tal:tag condition="view/update"
-/><html metal:use-macro="views/standard_macros/page">
+<tal:tag condition="view/update" /><html metal:use-macro="views/standard_macros/page">
   <body>
-  <div metal:fill-slot="body">
+    <div metal:fill-slot="body">
 
-  <div metal:define-macro="body">
+      <div metal:define-macro="body">
 
-    <form action="." tal:attributes="action request/URL" method="POST"
-          enctype="multipart/form-data" >
+        <form action="." tal:attributes="action request/URL" method="POST"
+              enctype="multipart/form-data" >
 
-      <div metal:define-macro="formbody">
+          <div metal:define-macro="formbody">
 
-        <h3 tal:condition="view/label"
-            tal:content="view/label"
-            metal:define-slot="heading"
-            >Edit something</h3>
+            <h3 tal:condition="view/label"
+                tal:content="view/label"
+                metal:define-slot="heading"
+                >Edit something</h3>
 
-        <p tal:condition="view/feedback" tal:content="view/feedback" />
+                <p tal:condition="view/feedback" tal:content="view/feedback" />
 
-        <div metal:define-slot="extra_info" tal:replace="nothing">
-        </div>
+                <div metal:define-slot="extra_info" tal:replace="nothing">
+                </div>
 
-        <div class="row"
-             metal:define-slot="extra_top" tal:replace="nothing">
-            <div class="label">Extra top</div>
-            <div class="field"><input type="text" style="width:100%" /></div>
-        </div>
-        
-        <div metal:use-macro="context/@@form_macros/widget_rows" />
-        
-        <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="row"
+                     metal:define-slot="extra_top" tal:replace="nothing">
+                  <div class="label">Extra top</div>
+                  <div class="field"><input type="text" style="width:100%" /></div>
+                </div>
 
-      </div>
+                <div metal:use-macro="context/@@form_macros/widget_rows" />
 
-      <div class="row">
-        <div class="controls">
-          <!-- <input type="submit" value="Refresh" 
-              i18n:attributes="value refresh-button" /> -->
-          <input tal:condition="view/show_previous"
-            type="submit" name="PREVIOUS_SUBMIT" value="Previous"
-            i18n:attributes="value previous-button" /> 
-          <input tal:condition="view/show_submit"
-            type="submit" name="UPDATE_SUBMIT" value="Submit" 
-            i18n:attributes="value submit-button"/>
-          <input tal:condition="view/show_next"
-            type="submit" name="NEXT_SUBMIT" value="Next"
-            i18n:attributes="value next-button" /> 
-        </div>
-      </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 tal:replace="structure view/renderHidden">
-          <!-- type=hidden input controls for passing state without session -->
-          <input type="hidden" name="example" value="foo" />
-        </div>
-    </form>
+          </div>
 
-  </div>
+          <div class="row">
+            <div class="controls">
+              <!-- <input type="submit" value="Refresh"
+                   i18n:attributes="value refresh-button" /> -->
+              <input tal:condition="view/show_previous"
+                     type="submit" name="PREVIOUS_SUBMIT" value="Previous"
+                     i18n:attributes="value previous-button" />
+              <input tal:condition="view/show_submit"
+                     type="submit" name="UPDATE_SUBMIT" value="Submit"
+                     i18n:attributes="value submit-button"/>
+              <input tal:condition="view/show_next"
+                     type="submit" name="NEXT_SUBMIT" value="Next"
+                     i18n:attributes="value next-button" />
+            </div>
+          </div>
+          <div class="separator"></div>
 
-  </div>
+          <div tal:replace="structure view/renderHidden">
+            <!-- type=hidden input controls for passing state without session -->
+            <input type="hidden" name="example" value="foo" />
+          </div>
+        </form>
+
+      </div>
+
+    </div>
   </body>
 
 </html>



More information about the Zope3-Checkins mailing list