[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/component/browser/registration.pt Merge from 3.3 branch:

Philipp von Weitershausen philikon at philikon.de
Sun Aug 13 08:35:09 EDT 2006


Log message for revision 69439:
  Merge from 3.3 branch:
   Log message for revision 69438:
    Improve usability of registration UI a little bit.
    
    "Click <a>here</a>" links are horrible, buttons are at least more visible
    and better to explain.
  

Changed:
  U   Zope3/trunk/src/zope/app/component/browser/registration.pt

-=-
Modified: Zope3/trunk/src/zope/app/component/browser/registration.pt
===================================================================
--- Zope3/trunk/src/zope/app/component/browser/registration.pt	2006-08-13 12:19:06 UTC (rev 69438)
+++ Zope3/trunk/src/zope/app/component/browser/registration.pt	2006-08-13 12:35:07 UTC (rev 69439)
@@ -1,20 +1,18 @@
 <html metal:use-macro="context/@@standard_macros/view"
-    i18n:domain="zope">
+      i18n:domain="zope">
 <body>
 <div metal:fill-slot="body">
-<form tal:attributes="action request/URL"
-      method="POST"
-      >
 
-  <div tal:condition="not:view/registrations">
+  <form action="@@addRegistration.html" method="get"
+        tal:condition="not:view/registrations">
+    <p i18n:translate="">This object isn't yet registered.</p>
+    <input type="submit" value="Register this object"
+           i18n:attributes="value register-button" />
+  </form>
+
+  <tal:block tal:condition="view/registrations">
+  <form action="" method="post" tal:attributes="action request/URL">
     <p i18n:translate="">
-      This object isn't yet registered.  Click
-      <a href="@@addRegistration.html">here</a>
-      to register the object.
-    </p>
-  </div>
-  <div tal:condition="view/registrations">
-    <p i18n:translate="">
       This object is registered:
     </p>
     <table>
@@ -23,8 +21,7 @@
            <input type="checkbox"
                   class="noborder" name="ids:list"
                   tal:attributes="value registration/id;
-                                  id registration/id;
-                                  "
+                                  id registration/id;"
                   />
          </td>
          <td tal:define="info registration/render">
@@ -47,13 +44,13 @@
         </td>
       </tr>
     </table>
-    <p i18n:translate="">
-      Click <a href="@@addRegistration.html">here</a>
-      to register the object again.
-    </p>
-  </div>
+  </form>
 
-</form>
+  <form action="@@addRegistration.html" method="get">
+    <input type="submit" value="Register this object again"
+           i18n:attributes="value register-again-button" />
+  </form>
+  </tal:block>
 
 </div>
 </body>



More information about the Zope3-Checkins mailing list