f681d767102806855278468977a89f78b24242ab
[Plinn.git] / Products / Plinn / skins / custom_generic / join_template.pt
1 <html xmlns:tal="http://xml.zope.org/namespaces/tal"
2 xmlns:metal="http://xml.zope.org/namespaces/metal"
3 xmlns:i18n="http://xml.zope.org/namespaces/i18n"
4 metal:use-macro="context/main_template/macros/master">
5 <head>
6 <meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
7 </head>
8 <body>
9 <metal:slot metal:fill-slot="main_no_tabs"
10 i18n:domain="plinn"
11 tal:define="form options/form">
12 <h1 tal:content="options/title" i18n:translate="">Become a member</h1>
13 <div class="Desktop">
14 <tal:case tal:condition="options/isOrdinaryMember">
15 <p i18n:translate="">
16 You are already a member. You may use the <a
17 href="personalize_form">personalization form</a> to change your
18 membership information.
19 </p>
20 </tal:case>
21 <tal:case tal:condition="python:options['isNewMember'] and options['isAnonRegistration']">
22 <p i18n:translate="">You have been registered as a member.</p>
23 <p tal:condition="options/validate_email" i18n:translate="">
24 You will receive an email shortly containing your password and
25 instructions on how to activate your membership.
26 </p>
27 <tal:case tal:condition="not: options/validate_email">
28 <p i18n:translate="">Click the button to log in immediately.</p>
29 <form tal:attributes="action form/action">
30 <input type="hidden" name="__ac_name" tal:attributes="value options/member_id"/>
31 <input type="hidden" name="__ac_password" tal:attributes="value options/password"/>
32 <input type="hidden" name="noAjax" value="1"/>
33 <metal:macro metal:use-macro="context/form_widgets/macros/buttons"/>
34 </form>
35 </tal:case>
36 </tal:case>
37 <tal:case tal:condition="python:options['isNewMember'] and options['isReviewedRegistration']">
38 <p i18n:translate="">Your registration request has been taken into account.</p>
39 <p tal:condition="options/validate_email" i18n:translate="">
40 Your request will be reviewed soon by a portal administrator. You
41 will receive an email containing your password and instructions on
42 how to activate your membership when your registration will be
43 approved.
44 </p>
45 <p tal:condition="not:options/validate_email" i18n:translate="">
46 Your request will be reviewed soon by a portal administrator. You
47 will receive an email when your registration will be approved.
48 </p>
49 <p>
50 <a href="" tal:attributes="href options/portal_url" i18n:translate="">Return to homepage</a>
51 </p>
52 </tal:case>
53 <tal:case tal:condition="options/isAnon">
54 <p i18n:translate="">
55 Becoming a member gives you the ability to personalize the site and
56 participate in the community.
57 </p>
58 <p i18n:translate="">
59 It does not cost any money to become a member and your email and
60 other personal information will remain private.
61 </p>
62 <p tal:condition="options/validate_email" i18n:translate="">
63 You must submit a valid email address. This address will be used to
64 send you a randomly-generated password. Once you have logged in
65 with this password, you may change it to anything you like.
66 </p>
67 </tal:case>
68 <tal:case tal:condition="options/isAnonOrUserManager">
69 <form action="." method="post" tal:attributes="action form/action">
70 <table class="FormLayout">
71 <tr>
72 <th i18n:translate="">Member ID</th>
73 <td>
74 <input type="text" name="member_id" size="30" tal:attributes="value options/member_id"/>
75 </td>
76 </tr>
77 <tr>
78 <th i18n:translate="">First name</th>
79 <td>
80 <input type="text" name="given_name" size="30" tal:attributes="value options/given_name|nothing"/>
81 </td>
82 </tr>
83 <tr>
84 <th i18n:translate="">Last name</th>
85 <td>
86 <input type="text" name="name" size="30" tal:attributes="value options/name|nothing"/>
87 </td>
88 </tr>
89 <tr>
90 <th i18n:translate="">Email Address</th>
91 <td>
92 <input type="text" name="member_email" size="30" tal:attributes="value options/member_email"/>
93 </td>
94 </tr>
95 <tal:case tal:condition="not: options/validate_email">
96 <tr>
97 <th i18n:translate="">Password</th>
98 <td>
99 <input type="password" name="password" size="30"/>
100 </td>
101 </tr>
102 <tr>
103 <th i18n:translate="">Password (confirm)</th>
104 <td>
105 <input type="password" name="confirm" size="30"/>
106 </td>
107 </tr>
108 <tr>
109 <th i18n:translate="">Mail Password?</th>
110 <td>
111 <input type="checkbox" name="send_password" id="cb_send_password" tal:attributes="checked options/send_password"/>
112 <em>
113 <label for="cb_send_password" i18n:translate="">
114 Check this box to have the password mailed.
115 </label>
116 </em>
117 </td>
118 </tr>
119 </tal:case>
120 <tr>
121 <td>
122 <br/>
123 </td>
124 <td>
125 <metal:macro metal:use-macro="context/form_widgets/macros/buttons"/>
126 </td>
127 </tr>
128 </table>
129 </form>
130 </tal:case>
131 </div>
132 </metal:slot>
133 </body>
134 </html>