source: products/qPloneCaptchas/tags/1.2.3/skins/captchas_join_form/2.5/join_form.cpt @ 2284

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

Building directory structure

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