1
|
[% SWITCH stage %]
|
2
|
[% CASE 'register' %]
|
3
|
|
4
|
|
5
|
<h3>Account Registration</h3>
|
6
|
|
7
|
<table class="intro" cellpadding="3" cellspacing="0">
|
8
|
<tr><td align="left">
|
9
|
<span class="regtext">
|
10
|
Fill out the form below to register your account.
|
11
|
A verification email will be sent with instructions to activate your account after you have registered.
|
12
|
</td></tr>
|
13
|
<!--
|
14
|
<tr><td align="left">
|
15
|
<strong>Note: </strong>To create an account affiliated with an organization such as OBFS, UCNRS, KU, LTER, UVM, NCEAS, OSUSB, SDSC or NAPIER contact tech support.
|
16
|
Emails are: tech_support@lternet.edu for LTER, infomgr@ucnrs.org for UCNRS, judithk@sanparks.org for SANParks and SAEON and knb-help@nceas.ucsb.edu for other organizations.
|
17
|
</td></tr>
|
18
|
-->
|
19
|
<tr><td align="left"><span class="label">Required fields are denoted by an asterisk (*).</td></tr>
|
20
|
</table>
|
21
|
<p> </p>
|
22
|
|
23
|
[% fieldType = 'text' %]
|
24
|
[% CASE 'registerconfirmed' %]
|
25
|
|
26
|
|
27
|
<h3>Confirm registration information</h3>
|
28
|
|
29
|
<table class="intro" cellpadding="3" cellspacing="0">
|
30
|
<tr><td align="left"><span class="regtext">If you have confirmed that the accounts listed above do not
|
31
|
represent you, you can continue with the registration process
|
32
|
using the data you provided, summarized below: </td></tr></table>
|
33
|
|
34
|
[% fieldType = 'hidden' %]
|
35
|
[% END %]
|
36
|
<p class="label text-error">[% errorMessage %]<p>
|
37
|
<p>
|
38
|
|
39
|
<form name="loginForm" action="[% cgiurl %]" method="post">
|
40
|
<input type="hidden" name="stage" value="[% stage %]"/>
|
41
|
<input type="hidden" name="cfg" value="[% cfg %]"/>
|
42
|
<table hspace="20" border="0">
|
43
|
<tr>
|
44
|
<td align="left" class="label">
|
45
|
*First Name:
|
46
|
</td>
|
47
|
<td align="right">
|
48
|
[% IF stage == 'registerconfirmed' %]
|
49
|
[% allParams.givenName %]
|
50
|
[% END %]
|
51
|
<input name="givenName" type="[% fieldType %]"
|
52
|
value="[% allParams.givenName %]"/>
|
53
|
</td>
|
54
|
</tr>
|
55
|
<tr>
|
56
|
<td align="left" class="label">
|
57
|
*Last Name:
|
58
|
</td>
|
59
|
<td align="right">
|
60
|
[% IF stage == 'registerconfirmed' %]
|
61
|
[% allParams.sn %]
|
62
|
[% END %]
|
63
|
<input name="sn" type="[% fieldType %]" value="[% allParams.sn %]"/>
|
64
|
</td>
|
65
|
</tr>
|
66
|
<tr>
|
67
|
<td align="left" class="label">
|
68
|
*Organization:
|
69
|
</td>
|
70
|
<td align="right">
|
71
|
[% IF stage == 'registerconfirmed' %]
|
72
|
[% allParams.o %]
|
73
|
<input name="o" type="[% fieldType %]"
|
74
|
value="[% allParams.o %]"/>
|
75
|
[% ELSE %]
|
76
|
<select name="o">
|
77
|
[% FOREACH org = orgList %]
|
78
|
[% IF allParams.o == org %]
|
79
|
<option value="[% org %]" selected>[% org %]</option>
|
80
|
[% ELSE %]
|
81
|
<option value="[% org %]">[% org %]</option>
|
82
|
[% END %]
|
83
|
[% END %]
|
84
|
</select>
|
85
|
[% END %]
|
86
|
</td>
|
87
|
</tr>
|
88
|
<tr>
|
89
|
<td align="left" class="label">
|
90
|
Telephone:
|
91
|
</td>
|
92
|
<td align="right">
|
93
|
[% IF stage == 'registerconfirmed' %]
|
94
|
[% allParams.telephoneNumber %]
|
95
|
[% END %]
|
96
|
<input name="telephoneNumber" type="[% fieldType %]"
|
97
|
value="[% allParams.telephoneNumber %]"/>
|
98
|
</td>
|
99
|
</tr>
|
100
|
<tr>
|
101
|
<td align="left" class="label">
|
102
|
*E-mail:
|
103
|
</td>
|
104
|
<td align="right">
|
105
|
[% IF stage == 'registerconfirmed' %]
|
106
|
[% allParams.mail %]
|
107
|
[% END %]
|
108
|
<input name="mail" type="[% fieldType %]"
|
109
|
value="[% allParams.mail %]"/>
|
110
|
</td>
|
111
|
</tr>
|
112
|
<tr>
|
113
|
<td align="left" class="label">
|
114
|
Title:
|
115
|
</td>
|
116
|
<td align="right">
|
117
|
[% IF stage == 'registerconfirmed' %]
|
118
|
[% allParams.title %]
|
119
|
[% END %]
|
120
|
<input name="title" type="[% fieldType %]"
|
121
|
value="[% allParams.title %]"/>
|
122
|
</td>
|
123
|
</tr>
|
124
|
<tr>
|
125
|
<td align="left" class="label">
|
126
|
*Username:
|
127
|
</td>
|
128
|
<td align="right">
|
129
|
[% IF stage == 'registerconfirmed' %]
|
130
|
[% allParams.uid %]
|
131
|
[% END %]
|
132
|
<input name="uid" type="[% fieldType %]"
|
133
|
value="[% allParams.uid %]"/>
|
134
|
</td>
|
135
|
</tr>
|
136
|
<tr>
|
137
|
<td align="left" class="label">
|
138
|
*Password:
|
139
|
</td>
|
140
|
<td align="right">
|
141
|
[% IF stage == 'registerconfirmed' %]
|
142
|
<input name="userPassword" type="[% fieldType %]"
|
143
|
value="[% allParams.userPassword %]"/>
|
144
|
NOT DISPLAYED
|
145
|
[% ELSE %]
|
146
|
<input name="userPassword" type="password"
|
147
|
value="[% allParams.userPassword %]"/>
|
148
|
[% END %]
|
149
|
</td>
|
150
|
</tr>
|
151
|
<tr>
|
152
|
<td align="left" class="label">
|
153
|
*Confirm Password:
|
154
|
</td>
|
155
|
<td align="right">
|
156
|
[% IF stage == 'registerconfirmed' %]
|
157
|
<input name="userPassword2" type="[% fieldType %]"
|
158
|
value="[% allParams.userPassword2 %]"/>
|
159
|
NOT DISPLAYED
|
160
|
[% ELSE %]
|
161
|
<input name="userPassword2" type="password"
|
162
|
value="[% allParams.userPassword2 %]"/>
|
163
|
[% END %]
|
164
|
</td>
|
165
|
</tr>
|
166
|
[% IF stage == 'register' %]
|
167
|
<tr>
|
168
|
<td align="left" class="label">
|
169
|
*Verification Code:
|
170
|
</td>
|
171
|
<td align="right">
|
172
|
<div id="captchaArea">
|
173
|
<a href="javascript:;" onclick="showRecaptcha('captchaArea');">Show Code</a>
|
174
|
</div>
|
175
|
<script type="text/javascript" src="https://www.google.com/recaptcha/api/js/recaptcha_ajax.js"></script>
|
176
|
<script type="text/javascript">
|
177
|
function showRecaptcha(element) {
|
178
|
Recaptcha.create("[% recaptchaPublicKey %]", element, {
|
179
|
theme: "clean",
|
180
|
callback: Recaptcha.focus_response_field});
|
181
|
return false;
|
182
|
}
|
183
|
showRecaptcha('captchaArea');
|
184
|
</script>
|
185
|
</td>
|
186
|
</tr>
|
187
|
[% END %]
|
188
|
|
189
|
<tr>
|
190
|
<td>
|
191
|
</td>
|
192
|
<td align="right">
|
193
|
[% SWITCH stage %]
|
194
|
[% CASE 'register' %]
|
195
|
<input name="action" type="submit" value="Register"/>
|
196
|
[% CASE 'registerconfirmed' %]
|
197
|
<input name="action" type="submit" value="Continue"/>
|
198
|
[% END %]
|
199
|
</td>
|
200
|
</tr>
|
201
|
</table>
|
202
|
</form>
|
203
|
|