[CMF-checkins] CVS: CMF/CMFDefault/skins/zpt_generic - reconfig_form.pt:1.4

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


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

Modified Files:
	reconfig_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/reconfig_form.pt 1.3 => 1.4 ===
--- CMF/CMFDefault/skins/zpt_generic/reconfig_form.pt:1.3	Tue Apr  2 19:10:34 2002
+++ CMF/CMFDefault/skins/zpt_generic/reconfig_form.pt	Thu Mar  6 05:33:20 2003
@@ -2,96 +2,102 @@
       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">
 
-<h3> Configure the Portal </h3>
+<h3 i18n:translate="">Configure the Portal</h3>
 
-<p> This form is used to set the portal configuration options.</p>
+<p i18n:translate="">This form is used to set the portal configuration
+  options.</p>
 
 <div tal:define="pprops here/portal_properties">
 
-<form action="" method="Post"
+<form action="" method="post"
       tal:attributes="action string:${here/portal_url}/reconfig"
 >
  <table class="FormLayout">
   <tr>
-   <th valign="top" align="left"> Portal 'From' name
+   <th valign="top" align="left" i18n:translate="">Portal 'From' name
    </th>
    <td>
     <input name="email_from_name" value=""
-	       tal:attributes="value pprops/email_from_name">
+           tal:attributes="value pprops/email_from_name" />
     <dl class="FieldHelp">
-     <dd> When the portal generates mail, it uses this name
+     <dd i18n:translate=""> When the portal generates mail, it uses this name
           as its (apparent) sender. </dd>
     </dl>
    </td>
   </tr>
   <tr>
-   <th valign="top" align="left"> Portal 'From' address
+   <th valign="top" align="left" i18n:translate="">Portal 'From' address
    </th>
    <td><input name="email_from_address" value=""
-              tal:attributes="value pprops/email_from_address">
+              tal:attributes="value pprops/email_from_address" />
     <dl class="FieldHelp">
-     <dd> When the portal generates mail, it uses this address
-          as its (apparent) return address. </dd>
+     <dd i18n:translate="">When the portal generates mail, it uses this
+       address as its (apparent) return address.</dd>
     </dl>
    </td>
   </tr>
   <tr>
-   <th valign="top" align="left"> SMTP server
+   <th valign="top" align="left" i18n:translate="">SMTP server
    </th>
    <td>
     <input name="smtp_server" value=""
-	       tal:attributes="value pprops/smtp_server">
+           tal:attributes="value pprops/smtp_server" />
     <dl class="FieldHelp">
-     <dd> This is the address of your local SMTP (out-going
+     <dd i18n:translate="">This is the address of your local SMTP (out-going
           mail) server.</dd>
     </dl>
    </td>
   </tr>
   <tr>
-   <th valign="top" align="left"> Portal title
+   <th valign="top" align="left" i18n:translate="">Portal title
    </th>
    <td>
     <input name="title" value=""
-	       tal:attributes="value pprops/title">
+           tal:attributes="value pprops/title" />
     <dl class="FieldHelp">
-     <dd> This is the title which appears at the top of every
+     <dd i18n:translate="">This is the title which appears at the top of every
           portal page.</dd>
     </dl>
   </td>
   </tr>
   <tr>
-   <th valign="top" align="left"> Portal description
+   <th valign="top" align="left" i18n:translate="">Portal description
    </th>
    <td>
      <textarea cols="40" rows="6" name="description"
         style="width: 100%" wrap="soft"
-		tal:content="pprops/description"></textarea>
+        tal:content="pprops/description"></textarea>
      <dl class="FieldHelp">
-      <dd> This description is made available via syndicated
+      <dd i18n:translate="">This description is made available via syndicated
            content and elsewhere.  It should be fairly brief.</dd>
      </dl>
    </td>
   </tr>
   <tr>
-   <th valign="top" align="left"> Password policy
+   <th valign="top" align="left" i18n:translate="">Password policy
    </th>
    <td>
-    <input type=radio name="validate_email:int"
-           value="1" tal:attributes="checked pprops/validate_email">
-           Generate and email members' initial password<br>
-    <input type=radio name="validate_email:int" value="0" 
-	       tal:define="aec pprops/validate_email"
-           tal:attributes="checked python:not(aec)">
-           Allow members to select their initial password
+    <input type="radio" name="validate_email:int"
+           value="1" tal:attributes="checked pprops/validate_email" />
+    <span tal:omit-tag="" i18n:translate="">Generate and email members'
+      initial password</span>
+    <br />
+    <input type="radio" name="validate_email:int" value="0"
+           tal:define="aec pprops/validate_email"
+           tal:attributes="checked python:not(aec)" />
+    <span tal:omit-tag="" i18n:translate="">Allow members to select their
+      initial password</span>
    </td>
   </tr>
   <tr>
    <td></td>
-   <td colspan="2"><input type="Submit" value="Change"></td>
+   <td colspan="2">
+    <input type="submit" value="Change" i18n:attributes="value" />
+   </td>
   </tr>
  </table>
 </form>