source: products/qPloneCaptchas/trunk/skins/captchas_join_form/2.0.5/join_form.cpt @ 2111

Last change on this file since 2111 was 1, checked in by myroslav, 19 years ago

Building directory structure

  • Property svn:eol-style set to native
File size: 8.3 KB
Line 
1<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
2      lang="en"
3      metal:use-macro="here/main_template/macros/master"
4      i18n:domain="plone">
5
6  <metal:block fill-slot="top_slot"
7               tal:define="dummy python:request.set('disable_border',1)" />
8
9  <body>
10
11    <div metal:fill-slot="main"
12         tal:define="errors options/state/getErrors;">
13
14      <h1 i18n:translate="heading_registration_form">Registration Form</h1>
15
16      <form action=""
17            method="post"
18            tal:define="allowEnterPassword site_properties/validate_email|nothing;"
19            tal:attributes="action template/getId" >
20
21        <fieldset>
22
23          <legend i18n:translate="legend_personal_details">Personal Details</legend>
24
25          <input type="hidden" name="came_from" value=""
26                 tal:condition="request/came_from|nothing"
27                 tal:attributes="value request/came_from" />
28          <input type="hidden" name="last_visit:date" value="ZopeTime"
29                 tal:attributes="value here/ZopeTime" />
30          <input type="hidden" name="prev_visit:date" value="ZopeTime"
31                 tal:attributes="value here/ZopeTime" />
32          <input type="hidden" name="came_from_prefs" value=""
33                 tal:attributes="value request/came_from_prefs|nothing" />
34
35          <div class="row"
36               tal:define="error errors/fullname| nothing;
37                           fullname request/fullname | nothing;"
38               tal:attributes="class python:test(error, 'field error', 'field')">
39
40            <label i18n:translate="label_full_name">Full Name</label>
41
42            <div class="formHelp" i18n:translate="help_full_name_creation">
43              Enter full name, eg. John Smith.
44            </div>
45
46            <div tal:content="error">Validation error output</div>
47
48            <input type="text"
49                   name="fullname"
50                   size="30"
51                   value="fullname"
52                   tabindex=""
53                   tal:attributes="value fullname;
54                                   tabindex tabindex/next;"
55                   />
56
57          </div>
58
59          <div class="field"
60               tal:define="error errors/username| nothing;
61                           username request/username | nothing;"
62               tal:attributes="class python:test(error, 'field error', 'field')">
63
64            <label i18n:translate="label_user_name">User Name</label>
65
66            <span class="fieldRequired" title="Required"
67                  i18n:attributes="title"
68                  i18n:translate="label_required">(Required)</span>
69
70                  <div i18n:translate="help_user_name_creation_casesensitive"
71                       class="formHelp">
72                    Enter a user name, usually something like
73                    'jsmith'. No spaces or special characters.
74                    Usernames and passwords are case sensitive,
75                    make sure the caps lock key is not enabled.
76                    This is the name used to log in.
77                  </div>
78
79                  <div tal:content="error">Validation error output</div>
80
81                  <input type="text"
82                         name="username"
83                         size="30"
84                         value="username"
85                         tabindex=""
86                         tal:attributes="value username;
87                                         tabindex tabindex/next;"
88                         />
89          </div>
90
91          <div class="field"
92               tal:define="error errors/email | nothing;
93                           email request/email | nothing;"
94               tal:attributes="class python:test(error, 'field error', 'field')">
95
96            <label i18n:translate="label_email">E-mail</label>
97
98            <span class="fieldRequired" title="Required"
99                  i18n:attributes="title"
100                  i18n:translate="label_required">(Required)</span>
101
102                  <div class="formHelp" i18n:translate="help_email_creation">
103                    Enter an email address. This is necessary in case the password
104                    is lost. We respect your privacy, and will not give the address
105                    away to any third parties or expose it anywhere.
106                  </div>
107
108                  <div tal:content="error">Validation error output</div>
109
110                  <input type="text"
111                         name="email"
112                         size="30"
113                         tabindex=""
114                         tal:attributes="value email;
115                                         tabindex tabindex/next;"
116                         />
117          </div>
118
119
120          <div class="field"
121               tal:condition="not: allowEnterPassword"
122               tal:define="error errors/password | nothing;
123                           password request/password | nothing;"
124               tal:attributes="class python:test(error, 'field error', 'field')">
125
126            <label i18n:translate="label_password">Password</label>
127
128            <span class="fieldRequired" title="Required"
129                  i18n:attributes="title"
130                  i18n:translate="label_required">(Required)</span>
131
132                  <div class="formHelp" i18n:translate="help_password_creation">
133                    Minimum 5 characters.
134                  </div>
135
136                  <div tal:content="error">Validation error output</div>
137
138                  <input type="password"
139                         name="password"
140                         size="10"
141                         value=""
142                         tabindex=""
143                         tal:attributes="value password;
144                                         tabindex tabindex/next;"
145                         />
146          </div>
147
148          <div class="field"
149               tal:condition="not: allowEnterPassword"
150               tal:define="error errors/confirm | nothing;
151                           confirm request/confirm | nothing;"
152               tal:attributes="class python:test(error, 'field error', 'field')">
153
154
155            <label i18n:translate="label_confirm_password">Confirm password</label>
156
157            <span class="fieldRequired" title="Required"
158                  i18n:attributes="title"
159                  i18n:translate="label_required">(Required)</span>
160
161                  <div class="formHelp" i18n:translate="help_confirm_password">
162                    Re-enter the password. Make sure the passwords are identical.
163                  </div>
164
165                  <div tal:content="error">Validation error output</div>
166
167                  <input type="password"
168                         name="confirm"
169                         size="10"
170                         value=""
171                         tabindex=""
172                         tal:attributes="value confirm;
173                                         tabindex tabindex/next;"
174                         />
175          </div>
176
177          <div class="field"
178               tal:condition="not: allowEnterPassword"
179               tal:define="mail_me request/mail_me|nothing">
180
181            <input type="checkbox"
182                   class="noborder"
183                   name="mail_me"
184                   size="30"
185                   id="cb_mailme"
186                   tabindex=""
187                   tal:attributes="checked python:test(mail_me, 'checked', None);
188                                   tabindex tabindex/next;"
189                   />
190            <label for="cb_mailme" i18n:translate="label_mail_password">Send a mail with the password</label>
191          </div>
192
193          <div class="field"
194               tal:condition="allowEnterPassword">
195
196            <div class="formHelp" i18n:translate="label_password_will_be_mailed">
197              A password will be generated and
198              e-mailed to you to complete the registration process.
199            </div>
200          </div>
201          <div metal:use-macro="here/captcha_widget/macros/captcha"></div>
202
203          <div class="formControls">
204            <input class="context"
205                   type="submit"
206                   tabindex=""
207                   name="form.button.Register"
208                   value="Register"
209                   i18n:attributes="value"
210                   tal:attributes="tabindex tabindex/next;" />
211          </div>
212
213        </fieldset>
214       
215
216        <input type="hidden" name="form.submitted" value="1" />
217
218      </form>
219    </div>
220
221  </body>
222</html>
223
Note: See TracBrowser for help on using the repository browser.