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 8541 tao
                [% FOREACH orgDisplayHash = orgList %]
78
                  [% FOREACH pair IN orgDisplayHash.pairs %]
79
                    [% IF allParams.o == pair.key %]
80
                        <option value="[% pair.key %]" selected>[% pair.value %]</option>
81
                    [% ELSE %]
82
                        <option value="[% pair.key %]">[% pair.value %]</option>
83
                    [% END %]
84 8205 tao
                  [% END %]
85
                [% END %]
86
               </select>
87 2342 sgarg
            [% END %]
88
          </td>
89
        </tr>
90
        <tr>
91 2411 sgarg
          <td align="left" class="label">
92 2342 sgarg
            Telephone:
93
          </td>
94
          <td align="right">
95
            [% IF stage == 'registerconfirmed' %]
96
            [% allParams.telephoneNumber %]
97
            [% END %]
98
            <input name="telephoneNumber" type="[% fieldType %]"
99
                   value="[% allParams.telephoneNumber %]"/>
100
          </td>
101
        </tr>
102
        <tr>
103 2411 sgarg
          <td align="left" class="label">
104
            *E-mail:
105 2342 sgarg
          </td>
106
          <td align="right">
107
            [% IF stage == 'registerconfirmed' %]
108
            [% allParams.mail %]
109
            [% END %]
110
            <input name="mail" type="[% fieldType %]"
111
                   value="[% allParams.mail %]"/>
112
          </td>
113
        </tr>
114
        <tr>
115 2411 sgarg
          <td align="left" class="label">
116 2342 sgarg
            Title:
117
          </td>
118
          <td align="right">
119
            [% IF stage == 'registerconfirmed' %]
120
            [% allParams.title %]
121
            [% END %]
122
            <input name="title" type="[% fieldType %]"
123
                   value="[% allParams.title %]"/>
124
          </td>
125
        </tr>
126
        <tr>
127 2411 sgarg
          <td align="left" class="label">
128
            *Username:
129 2342 sgarg
          </td>
130
          <td align="right">
131
            [% IF stage == 'registerconfirmed' %]
132
            [% allParams.uid %]
133
            [% END %]
134
            <input name="uid" type="[% fieldType %]"
135
                   value="[% allParams.uid %]"/>
136
          </td>
137
        </tr>
138
        <tr>
139 2411 sgarg
          <td align="left" class="label">
140
            *Password:
141 2342 sgarg
          </td>
142
          <td align="right">
143
            [% IF stage == 'registerconfirmed' %]
144
            <input name="userPassword" type="[% fieldType %]"
145
                   value="[% allParams.userPassword %]"/>
146
            NOT DISPLAYED
147
            [% ELSE %]
148
            <input name="userPassword" type="password"
149
                   value="[% allParams.userPassword %]"/>
150
            [% END %]
151
          </td>
152
        </tr>
153
        <tr>
154 2411 sgarg
          <td align="left" class="label">
155
            *Confirm Password:
156 2342 sgarg
          </td>
157
          <td align="right">
158
            [% IF stage == 'registerconfirmed' %]
159
            <input name="userPassword2" type="[% fieldType %]"
160
                   value="[% allParams.userPassword2 %]"/>
161
            NOT DISPLAYED
162
            [% ELSE %]
163
            <input name="userPassword2" type="password"
164
                   value="[% allParams.userPassword2 %]"/>
165
            [% END %]
166
          </td>
167
        </tr>
168 8170 tao
        [% IF stage == 'register' %]
169 8167 tao
            <tr>
170
                <td align="left" class="label">
171
                    *Verification Code:
172
                </td>
173
                <td align="right">
174 8251 leinfelder
                	<div id="captchaArea">
175 8359 leinfelder
                            <a href="javascript:;" onclick="showRecaptcha('captchaArea');">Show Code</a>
176 8251 leinfelder
                    </div>
177 8260 tao
                    <script type="text/javascript" src="https://www.google.com/recaptcha/api/js/recaptcha_ajax.js"></script>
178 8251 leinfelder
                    <script type="text/javascript">
179
	                    function showRecaptcha(element) {
180
	                            Recaptcha.create("[% recaptchaPublicKey %]", element, {
181
	                            theme: "clean",
182
	                            callback: Recaptcha.focus_response_field});
183
	                            return false;
184
	                    }
185 8384 leinfelder
	                    showRecaptcha('captchaArea');
186 8251 leinfelder
                    </script>
187 8167 tao
                </td>
188
            </tr>
189
        [% END %]
190
191 2342 sgarg
        <tr>
192
          <td>
193
          </td>
194
          <td align="right">
195
    [% SWITCH stage %]
196
    [% CASE 'register' %]
197
            <input name="action" type="submit" value="Register"/>
198
    [% CASE 'registerconfirmed' %]
199
            <input name="action" type="submit" value="Continue"/>
200
    [% END %]
201
          </td>
202
        </tr>
203
      </table>
204
    </form>