[CMF-checkins] CVS: CMF/CMFDefault/skins/zpt_generic - login_form.pt:1.5

Yvo Schubbe schubbe@web.de
Thu, 6 Mar 2003 05:31:27 -0500


Update of /cvs-repository/CMF/CMFDefault/skins/zpt_generic
In directory cvs.zope.org:/tmp/cvs-serv10590/CMFDefault/skins/zpt_generic

Modified Files:
	login_form.pt 
Log Message:
Merged yuppie-collector122-branch:
- Added i18n attributes. (Collector #122)
- Made scripts independent of submit button values.
- Added transition_form.

=== CMF/CMFDefault/skins/zpt_generic/login_form.pt 1.4 => 1.5 ===
--- CMF/CMFDefault/skins/zpt_generic/login_form.pt:1.4	Sun Jul 14 18:45:07 2002
+++ CMF/CMFDefault/skins/zpt_generic/login_form.pt	Thu Mar  6 05:31:26 2003
@@ -2,9 +2,9 @@
       xmlns:metal="http://xml.zope.org/namespaces/metal"
       metal:use-macro="here/main_template/macros/master">
 <body>
-<div metal:fill-slot="main">
+<div metal:fill-slot="main" i18n:domain="cmf_default">
 <div class="Desktop">
-<h1 class="Desktop">Log in</h1>
+<h1 class="Desktop" i18n:translate="">Log in</h1>
 
 <form action="" method="post"
       tal:attributes="action string:${here/portal_url}/logged_in"
@@ -12,25 +12,27 @@
 
 <!-- ****** Enable the automatic redirect ***** -->
 <span tal:condition="exists: request/came_from">
-  <input type="hidden" name="came_from" value="" tal:attributes="value request/came_from">
+  <input type="hidden" name="came_from" value=""
+         tal:attributes="value request/came_from" />
 </span>
 <!-- ****** Enable the automatic redirect ***** -->
 
 <table class="FormLayout">
 <tr>
   <td align="left" valign="top">
-  <strong>Name</strong>
+  <strong i18n:translate="">Name</strong>
   </td>
   <td align="left" valign="top">
-  <input type="TEXT" name="__ac_name" size="20" value="" tal:attributes="value python: request.get('__ac_name') or ''">
+  <input type="TEXT" name="__ac_name" size="20" value=""
+         tal:attributes="value python: request.get('__ac_name') or ''" />
   </td>
 </tr>
 <tr>
   <td align="left" valign="top">
-  <strong>Password</strong>
+  <strong i18n:translate="">Password</strong>
   </td>
   <td align="left" valign="top">
-  <input type="PASSWORD" name="__ac_password" size="20">
+  <input type="PASSWORD" name="__ac_password" size="20" />
   </td>
 </tr>
 
@@ -38,14 +40,15 @@
 <td></td>
 <td><input type="checkbox" name="__ac_persistent" value="1" checked
       id="cb_remember" />
-<label for="cb_remember">Remember my name.</label>
+<label for="cb_remember" i18n:translate="">Remember my name.</label>
 </td></tr>
 
 <tr>
   <td align="left" valign="top">
   </td>
   <td align="left" valign="top">
-  <input type="submit" name="submit" value=" Login ">
+  <input type="submit" name="submit" value=" Login "
+         i18n:attributes="value" />
   </td>
 </tr>
 
@@ -54,19 +57,21 @@
 
 <p><a href=""
     tal:attributes="href string:${here/portal_url}/mail_password_form"
+    i18n:translate=""
    >I forgot my password!</a>
 </p>
 
-<p> Having trouble logging in? Make sure to enable cookies in
+<p i18n:translate="">Having trouble logging in? Make sure to enable cookies in
     your web browser.
 </p>
 
-<p>Don't forget to logout or exit your browser when you're done.
+<p i18n:translate="">Don't forget to logout or exit your browser when you're
+  done.
 </p>
 
-<p> Setting the 'Remember my name' option will set a cookie with your
-    username, so that when you next log in, your user name will already
-    be filled in for you.
+<p i18n:translate="">Setting the 'Remember my name' option will set a cookie
+  with your username, so that when you next log in, your user name will
+  already be filled in for you.
 </p>
 </div>
 </div>