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
    <script type="text/javascript" language="JavaScript1.2">
39 2411 sgarg
40 2342 sgarg
    <!--
41
      document.loginForm.givenName.focus();
42
      document.loginForm.givenName.select();
43
44
      if(window.document.captureEvents != null)
45
      {
46
        window.document.captureEvents(Event.KEYPRESS);
47
        window.document.onKeyPress = doSubmit;
48
      }
49
50
      function doSubmit(event)
51
      {
52
        var key;
53
        if(document.all) // IE
54
          key = String.fromCharCode(window.events.keyCode);
55
        else
56
          key = String.fromCharCode(event.which);
57
58
        if(key == "\r" || key == "\n")
59
          document.loginForm.submit();
60
      }
61
    // -->
62
    </script>
63
64 3915 walbridge
    <form name="loginForm" action="[% cgiurl %]" method="post">
65 2342 sgarg
      <input type="hidden" name="stage" value="[% stage %]"/>
66
      <input type="hidden" name="cfg" value="[% cfg %]"/>
67 2411 sgarg
      <table hspace="20" border="0">
68 2342 sgarg
        <tr>
69 2411 sgarg
          <td align="left" class="label">
70
            *First Name:
71 2342 sgarg
          </td>
72
          <td align="right">
73
            [% IF stage == 'registerconfirmed' %]
74
            [% allParams.givenName %]
75
            [% END %]
76
            <input name="givenName" type="[% fieldType %]"
77
                   value="[% allParams.givenName %]"/>
78
          </td>
79
        </tr>
80
        <tr>
81 2411 sgarg
          <td align="left" class="label">
82
            *Last Name:
83 2342 sgarg
          </td>
84
          <td align="right">
85
            [% IF stage == 'registerconfirmed' %]
86
            [% allParams.sn %]
87
            [% END %]
88
            <input name="sn" type="[% fieldType %]" value="[% allParams.sn %]"/>
89
          </td>
90
        </tr>
91
        <tr>
92 2411 sgarg
          <td align="left" class="label">
93
            *Organization:
94 2342 sgarg
          </td>
95
          <td align="right">
96
            [% IF stage == 'registerconfirmed' %]
97
            [% allParams.o %]
98
            <input name="o" type="[% fieldType %]"
99
                   value="[% allParams.o %]"/>
100
            [% ELSE %]
101
            <select name="o">
102 8205 tao
                [% FOREACH org = orgList %]
103
                  [% IF allParams.o == org %]
104
                    <option value="[% org %]" selected>[% org %]</option>
105
                  [% ELSE %]
106
                    <option value="[% org %]">[% org %]</option>
107
                  [% END %]
108
                [% END %]
109
               </select>
110 2342 sgarg
            [% END %]
111
          </td>
112
        </tr>
113
        <tr>
114 2411 sgarg
          <td align="left" class="label">
115 2342 sgarg
            Telephone:
116
          </td>
117
          <td align="right">
118
            [% IF stage == 'registerconfirmed' %]
119
            [% allParams.telephoneNumber %]
120
            [% END %]
121
            <input name="telephoneNumber" type="[% fieldType %]"
122
                   value="[% allParams.telephoneNumber %]"/>
123
          </td>
124
        </tr>
125
        <tr>
126 2411 sgarg
          <td align="left" class="label">
127
            *E-mail:
128 2342 sgarg
          </td>
129
          <td align="right">
130
            [% IF stage == 'registerconfirmed' %]
131
            [% allParams.mail %]
132
            [% END %]
133
            <input name="mail" type="[% fieldType %]"
134
                   value="[% allParams.mail %]"/>
135
          </td>
136
        </tr>
137
        <tr>
138 2411 sgarg
          <td align="left" class="label">
139 2342 sgarg
            Title:
140
          </td>
141
          <td align="right">
142
            [% IF stage == 'registerconfirmed' %]
143
            [% allParams.title %]
144
            [% END %]
145
            <input name="title" type="[% fieldType %]"
146
                   value="[% allParams.title %]"/>
147
          </td>
148
        </tr>
149
        <tr>
150 2411 sgarg
          <td align="left" class="label">
151
            *Username:
152 2342 sgarg
          </td>
153
          <td align="right">
154
            [% IF stage == 'registerconfirmed' %]
155
            [% allParams.uid %]
156
            [% END %]
157
            <input name="uid" type="[% fieldType %]"
158
                   value="[% allParams.uid %]"/>
159
          </td>
160
        </tr>
161
        <tr>
162 2411 sgarg
          <td align="left" class="label">
163
            *Password:
164 2342 sgarg
          </td>
165
          <td align="right">
166
            [% IF stage == 'registerconfirmed' %]
167
            <input name="userPassword" type="[% fieldType %]"
168
                   value="[% allParams.userPassword %]"/>
169
            NOT DISPLAYED
170
            [% ELSE %]
171
            <input name="userPassword" type="password"
172
                   value="[% allParams.userPassword %]"/>
173
            [% END %]
174
          </td>
175
        </tr>
176
        <tr>
177 2411 sgarg
          <td align="left" class="label">
178
            *Confirm Password:
179 2342 sgarg
          </td>
180
          <td align="right">
181
            [% IF stage == 'registerconfirmed' %]
182
            <input name="userPassword2" type="[% fieldType %]"
183
                   value="[% allParams.userPassword2 %]"/>
184
            NOT DISPLAYED
185
            [% ELSE %]
186
            <input name="userPassword2" type="password"
187
                   value="[% allParams.userPassword2 %]"/>
188
            [% END %]
189
          </td>
190
        </tr>
191 8170 tao
        [% IF stage == 'register' %]
192 8167 tao
            <tr>
193
                <td align="left" class="label">
194
                    *Verification Code:
195
                </td>
196
                <td align="right">
197 8251 leinfelder
                	<div id="captchaArea">
198
                            <a onclick="showRecaptcha('captchaArea');">Show Code</a>
199
                    </div>
200 8260 tao
                    <script type="text/javascript" src="https://www.google.com/recaptcha/api/js/recaptcha_ajax.js"></script>
201 8251 leinfelder
                    <script type="text/javascript">
202
	                    function showRecaptcha(element) {
203
	                            Recaptcha.create("[% recaptchaPublicKey %]", element, {
204
	                            theme: "clean",
205
	                            callback: Recaptcha.focus_response_field});
206
	                            return false;
207
	                    }
208
                    </script>
209 8167 tao
                </td>
210
            </tr>
211
        [% END %]
212
213 2342 sgarg
        <tr>
214
          <td>
215
          </td>
216
          <td align="right">
217
    [% SWITCH stage %]
218
    [% CASE 'register' %]
219
            <input name="action" type="submit" value="Register"/>
220
    [% CASE 'registerconfirmed' %]
221
            <input name="action" type="submit" value="Continue"/>
222
    [% END %]
223
          </td>
224
        </tr>
225
      </table>
226
    </form>