Project

General

Profile

1 2342 sgarg
    [% SWITCH stage %]
2
    [% CASE 'register' %]
3 2411 sgarg
4
5 8235 tao
    <h3>Account Registration</h3>
6 2411 sgarg
7 8086 leinfelder
    <table class="intro" cellpadding="3" cellspacing="0">
8 8238 leinfelder
		<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 2411 sgarg
    </table>
21
    <p>&nbsp;</p>
22
23 2342 sgarg
    [% fieldType = 'text' %]
24
    [% CASE 'registerconfirmed' %]
25 2411 sgarg
26
27 8086 leinfelder
      <h3>Confirm registration information</h3>
28
29 2411 sgarg
    <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 2342 sgarg
    represent you, you can continue with the registration process
32 2411 sgarg
    using the data you provided, summarized below:   </td></tr></table>
33
34 2342 sgarg
    [% fieldType = 'hidden' %]
35
    [% END %]
36 8087 leinfelder
    <p class="label text-error">[% errorMessage %]<p>
37 2342 sgarg
    <p>
38
39 3915 walbridge
    <form name="loginForm" action="[% cgiurl %]" method="post">
40 2342 sgarg
      <input type="hidden" name="stage" value="[% stage %]"/>
41
      <input type="hidden" name="cfg" value="[% cfg %]"/>
42 2411 sgarg
      <table hspace="20" border="0">
43 2342 sgarg
        <tr>
44 2411 sgarg
          <td align="left" class="label">
45
            *First Name:
46 2342 sgarg
          </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 2411 sgarg
          <td align="left" class="label">
57
            *Last Name:
58 2342 sgarg
          </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 2411 sgarg
          <td align="left" class="label">
68
            *Organization:
69 2342 sgarg
          </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 8205 tao
                [% 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 2342 sgarg
            [% END %]
86
          </td>
87
        </tr>
88
        <tr>
89 2411 sgarg
          <td align="left" class="label">
90 2342 sgarg
            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 2411 sgarg
          <td align="left" class="label">
102
            *E-mail:
103 2342 sgarg
          </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 2411 sgarg
          <td align="left" class="label">
114 2342 sgarg
            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 2411 sgarg
          <td align="left" class="label">
126
            *Username:
127 2342 sgarg
          </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 2411 sgarg
          <td align="left" class="label">
138
            *Password:
139 2342 sgarg
          </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 2411 sgarg
          <td align="left" class="label">
153
            *Confirm Password:
154 2342 sgarg
          </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 8170 tao
        [% IF stage == 'register' %]
167 8167 tao
            <tr>
168
                <td align="left" class="label">
169
                    *Verification Code:
170
                </td>
171
                <td align="right">
172 8251 leinfelder
                	<div id="captchaArea">
173 8359 leinfelder
                            <a href="javascript:;" onclick="showRecaptcha('captchaArea');">Show Code</a>
174 8251 leinfelder
                    </div>
175 8260 tao
                    <script type="text/javascript" src="https://www.google.com/recaptcha/api/js/recaptcha_ajax.js"></script>
176 8251 leinfelder
                    <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 8384 leinfelder
	                    showRecaptcha('captchaArea');
184 8251 leinfelder
                    </script>
185 8167 tao
                </td>
186
            </tr>
187
        [% END %]
188
189 2342 sgarg
        <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>