[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services - serviceactivation.pt:1.4

Jim Fulton jim@zope.com
Mon, 10 Mar 2003 15:38:44 -0500


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

Modified Files:
	serviceactivation.pt 
Log Message:
Changed the display of the service type to use default content (rather
than a string expression) when no service type was provided.

Renamed the "action" view method to "update" to be consistent with
other self-posting forms. 

Changed the action in the form tag to use a computed action so as to
avoid a dependency on the registered view name.

Spruced up the table heading.

Changed the submit button name to "Submit".


=== Zope3/src/zope/app/browser/services/serviceactivation.pt 1.3 => 1.4 ===
--- Zope3/src/zope/app/browser/services/serviceactivation.pt:1.3	Sun Mar  9 07:18:51 2003
+++ Zope3/src/zope/app/browser/services/serviceactivation.pt	Mon Mar 10 15:38:42 2003
@@ -14,16 +14,20 @@
 <div metal:fill-slot="body">
 
   <h2>
-    <span tal:replace="request/type|string:No service type specified" />
+    <span tal:replace="request/type|default">No service type specified</span>
   </h2>
 
-  <p tal:content="view/action">Message from action() goes here</p>
+  <p tal:content="view/update">Message from update() goes here</p>
 
-  <form action="@@serviceActivation.html" method="POST">
+  <form action="." method="POST"
+        tal:attributes="action request/URL">
     <table tal:define="registry view/listRegistry">
 
       <thead>
-        <tr> <td></td> <td>service</td> <td>configure</td> </tr>
+        <tr> <td></td> 
+             <th align="left">Service</th> 
+             <th align="left">Configuration</th>
+        </tr>
       </thead>
 
       <tbody>
@@ -54,7 +58,7 @@
 
     <input type="hidden" name="type" value="Events"
            tal:attributes="value request/type|nothing" />
-    <input type="submit" value="Update">
+    <input type="submit" value="Submit">
 
   </form>