Project

General

Profile

metacat / lib / style / common / templates / ldapRegister.tmpl @ 8235

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
	<tr><td align="left">
14
		<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. 
15
		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.</td></tr>
16
       <tr><td align="left"><span class="label">Required fields are denoted by an asterisk (*).</td></tr>
17
       
18
    </table>
19
    <p>&nbsp;</p>
20
    
21
    [% fieldType = 'text' %]
22
    [% CASE 'registerconfirmed' %]
23
    
24
    
25
      <h3>Confirm registration information</h3>
26
    
27
    <table class="intro" cellpadding="3" cellspacing="0">
28
      <tr><td align="left"><span class="regtext">If you have confirmed that the accounts listed above do not 
29
    represent you, you can continue with the registration process 
30
    using the data you provided, summarized below:   </td></tr></table>
31
    
32
    [% fieldType = 'hidden' %]
33
    [% END %]
34
    <p class="label text-error">[% errorMessage %]<p>
35
    <p>
36
    <script type="text/javascript" language="JavaScript1.2">
37
    
38
    <!--
39
      document.loginForm.givenName.focus();
40
      document.loginForm.givenName.select();
41

    
42
      if(window.document.captureEvents != null)
43
      {
44
        window.document.captureEvents(Event.KEYPRESS);
45
        window.document.onKeyPress = doSubmit;
46
      }
47

    
48
      function doSubmit(event)
49
      {
50
        var key;
51
        if(document.all) // IE
52
          key = String.fromCharCode(window.events.keyCode);
53
        else
54
          key = String.fromCharCode(event.which);
55

    
56
        if(key == "\r" || key == "\n")
57
          document.loginForm.submit();
58
      }
59
    // -->
60
    </script>
61

    
62
    <form name="loginForm" action="[% cgiurl %]" method="post">
63
      <input type="hidden" name="stage" value="[% stage %]"/>
64
      <input type="hidden" name="cfg" value="[% cfg %]"/>
65
      <table hspace="20" border="0">
66
        <tr>
67
          <td align="left" class="label">
68
            *First Name:
69
          </td>
70
          <td align="right">
71
            [% IF stage == 'registerconfirmed' %]
72
            [% allParams.givenName %]
73
            [% END %]
74
            <input name="givenName" type="[% fieldType %]" 
75
                   value="[% allParams.givenName %]"/>
76
          </td>
77
        </tr>
78
        <tr>
79
          <td align="left" class="label">
80
            *Last Name:
81
          </td>
82
          <td align="right">
83
            [% IF stage == 'registerconfirmed' %]
84
            [% allParams.sn %]
85
            [% END %]
86
            <input name="sn" type="[% fieldType %]" value="[% allParams.sn %]"/>
87
          </td>
88
        </tr>
89
        <tr>
90
          <td align="left" class="label">
91
            *Organization:
92
          </td>
93
          <td align="right">
94
            [% IF stage == 'registerconfirmed' %]
95
            [% allParams.o %]
96
            <input name="o" type="[% fieldType %]" 
97
                   value="[% allParams.o %]"/>
98
            [% ELSE %]
99
            <select name="o">
100
                [% FOREACH org = orgList %]
101
                  [% IF allParams.o == org %]
102
                    <option value="[% org %]" selected>[% org %]</option>
103
                  [% ELSE %]
104
                    <option value="[% org %]">[% org %]</option>
105
                  [% END %]
106
                [% END %]
107
               </select>
108
            [% END %]
109
          </td>
110
        </tr>
111
        <tr>
112
          <td align="left" class="label">
113
            Telephone:
114
          </td>
115
          <td align="right">
116
            [% IF stage == 'registerconfirmed' %]
117
            [% allParams.telephoneNumber %]
118
            [% END %]
119
            <input name="telephoneNumber" type="[% fieldType %]" 
120
                   value="[% allParams.telephoneNumber %]"/>
121
          </td>
122
        </tr>
123
        <tr>
124
          <td align="left" class="label">
125
            *E-mail:
126
          </td>
127
          <td align="right">
128
            [% IF stage == 'registerconfirmed' %]
129
            [% allParams.mail %]
130
            [% END %]
131
            <input name="mail" type="[% fieldType %]" 
132
                   value="[% allParams.mail %]"/>
133
          </td>
134
        </tr>
135
        <tr>
136
          <td align="left" class="label">
137
            Title:
138
          </td>
139
          <td align="right">
140
            [% IF stage == 'registerconfirmed' %]
141
            [% allParams.title %]
142
            [% END %]
143
            <input name="title" type="[% fieldType %]" 
144
                   value="[% allParams.title %]"/>
145
          </td>
146
        </tr>
147
        <tr>
148
          <td align="left" class="label">
149
            *Username:
150
          </td>
151
          <td align="right">
152
            [% IF stage == 'registerconfirmed' %]
153
            [% allParams.uid %]
154
            [% END %]
155
            <input name="uid" type="[% fieldType %]" 
156
                   value="[% allParams.uid %]"/>
157
          </td>
158
        </tr>
159
        <tr>
160
          <td align="left" class="label">
161
            *Password:
162
          </td>
163
          <td align="right">
164
            [% IF stage == 'registerconfirmed' %]
165
            <input name="userPassword" type="[% fieldType %]"
166
                   value="[% allParams.userPassword %]"/>
167
            NOT DISPLAYED
168
            [% ELSE %]
169
            <input name="userPassword" type="password"
170
                   value="[% allParams.userPassword %]"/>
171
            [% END %]
172
          </td>
173
        </tr>
174
        <tr>
175
          <td align="left" class="label">
176
            *Confirm Password:
177
          </td>
178
          <td align="right">
179
            [% IF stage == 'registerconfirmed' %]
180
            <input name="userPassword2" type="[% fieldType %]"
181
                   value="[% allParams.userPassword2 %]"/>
182
            NOT DISPLAYED
183
            [% ELSE %]
184
            <input name="userPassword2" type="password"
185
                   value="[% allParams.userPassword2 %]"/>
186
            [% END %]
187
          </td>
188
        </tr>
189
        [% IF stage == 'register' %]
190
            <tr>
191
                <td align="left" class="label">
192
                    *Verification Code:
193
                </td>
194
                <td align="right">
195
                    [% captcha %]
196
                </td>
197
            </tr>
198
        [% END %]
199
        
200
        <tr>
201
          <td>
202
          </td>
203
          <td align="right">
204
    [% SWITCH stage %]
205
    [% CASE 'register' %]
206
            <input name="action" type="submit" value="Register"/>
207
    [% CASE 'registerconfirmed' %]
208
            <input name="action" type="submit" value="Continue"/>
209
    [% END %]
210
          </td>
211
        </tr>
212
      </table>
213
    </form>
214