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