[CMF-checkins] CVS: CMF/CMFDefault/skins/zpt_generic - join_form.pt:1.5
Yvo Schubbe
schubbe@web.de
Thu, 6 Mar 2003 05:30:48 -0500
Update of /cvs-repository/CMF/CMFDefault/skins/zpt_generic
In directory cvs.zope.org:/tmp/cvs-serv10350/CMFDefault/skins/zpt_generic
Modified Files:
join_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/join_form.pt 1.4 => 1.5 ===
--- CMF/CMFDefault/skins/zpt_generic/join_form.pt:1.4 Sat May 4 16:35:40 2002
+++ CMF/CMFDefault/skins/zpt_generic/join_form.pt Thu Mar 6 05:30:47 2003
@@ -2,99 +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"
tal:define="mtool here/portal_membership;
member mtool/getAuthenticatedMember;
ptool here/portal_properties;
">
-<h1>Become a member</h1>
+<h1 i18n:translate="">Become a member</h1>
<div tal:define="registered python:member.has_role('Member')">
<div tal:condition="registered">
- <p> You are already a member. You may use the
- <a href="personalize_form">personalization form</a>
+ <p i18n:translate=""> You are already a member. You may use the
+ <a href="personalize_form">personalization form</a>
to change your membership information. </p>
</div><!-- registered -->
<div tal:condition="not: registered">
- <p> Becoming a member gives you the ability to personalize the site
- and participate in the community.</p>
+ <p i18n:translate="">Becoming a member gives you the ability to personalize
+ the site and participate in the community.</p>
- <p> It does not cost any money to become a member and your email and
- other personal information will remain private.</p>
+ <p i18n:translate="">It does not cost any money to become a member and your
+ email and other personal information will remain private.</p>
- <p tal:condition="python: ptool.validate_email">
+ <p tal:condition="python: ptool.validate_email" i18n:translate="">
You must submit a valid email address. This address will be used
to send you a randomly-generated password. Once you have logged
in with this password, you may change it to anything you like.</p>
<div class="DesktopStatusBar"
tal:content="request/error|nothing">
- <hr>
+ <hr />
</div>
- <form action="register" method="POST"
+ <form action="register" method="post"
tal:attributes="action string:${here/portal_url}/register"
>
<input type="hidden" name="last_visit:date" value=""
- tal:attributes="value here/ZopeTime">
+ tal:attributes="value here/ZopeTime" />
<input type="hidden" name="prev_visit:date" value=""
- tal:attributes="value here/ZopeTime">
+ tal:attributes="value here/ZopeTime" />
<table class="FormLayout">
<tr>
- <th> Login Name </th>
+ <th i18n:translate="">Login Name</th>
<td>
<input type="text" name="username" size="30" value=""
- tal:attributes="value request/username|nothing">
+ tal:attributes="value request/username|nothing" />
</td>
</tr>
<tr>
- <th> Email Address </th>
+ <th i18n:translate="">Email Address</th>
<td align="left" valign="top">
<input type="text" name="email" size="30" value=""
- tal:attributes="value request/email|nothing">
+ tal:attributes="value request/email|nothing" />
</td>
</tr>
<tbody tal:condition="python: not(ptool.validate_email)">
<tr>
- <th> Password </th>
+ <th i18n:translate="">Password</th>
<td align="left" valign="top">
- <input type="password" name="password" size="30">
+ <input type="password" name="password" size="30" />
</td>
</tr>
<tr>
- <th> Password (confirm) </th>
+ <th i18n:translate="">Password (confirm)</th>
<td align="left" valign="top">
- <input type="password" name="confirm" size="30">
+ <input type="password" name="confirm" size="30" />
</td>
</tr>
<tr>
- <th> Mail Password? </th>
+ <th i18n:translate="">Mail Password?</th>
<td>
<input type="checkbox" name="mail_me" size="30" id="cb_mailme" />
- <em><label for="cb_mailme">Check this box to have your password
- mailed to you.</label></em>
+ <em><label for="cb_mailme" i18n:translate="">Check this box to have your
+ password mailed to you.</label></em>
</td>
</tr>
</tbody>
<tr>
- <td><br></td>
- <td> <input type="submit" name="submit" value="Register"> </td>
+ <td><br /></td>
+ <td>
+ <input type="submit" name="submit" value="Register"
+ i18n:attributes="value" />
+ </td>
</tr>
</table>