[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form - add.pt:1.14

Stephan Richter srichter at cosmos.phy.tufts.edu
Sat Dec 13 01:28:38 EST 2003


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

Modified Files:
	add.pt 
Log Message:
Fixed add forms which would cause compilation errors, since context does
not exist in Zoep 3 page templates.

This code must have been totally untested! (I mean not only unit or functional tests, but a simple manual one!)


=== Zope3/src/zope/app/browser/form/add.pt 1.13 => 1.14 ===
--- Zope3/src/zope/app/browser/form/add.pt:1.13	Fri Dec 12 06:19:45 2003
+++ Zope3/src/zope/app/browser/form/add.pt	Sat Dec 13 01:28:36 2003
@@ -35,17 +35,16 @@
             <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>
+            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>
+            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>
@@ -54,9 +53,9 @@
         <div class="controls">
           <input type="submit" value="Refresh"
               i18n:attributes="value refresh-button" />
-          <input type='submit' name="UPDATE_SUBMIT" value=" Add "
-            i18n:attributes="value add-button"
-            tal:replace="structure context/renderAddButton|default"/> 
+          <input type="submit" name="UPDATE_SUBMIT" value=" Add "
+              i18n:attributes="value add-button"
+              tal:replace="structure view/renderAddButton|default"/> 
         </div>
       </div>
       <div class="separator"></div>




More information about the Zope3-Checkins mailing list