Project

General

Profile

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

1
    [% SWITCH stage %]
2
    [% CASE 'register' %]
3
    
4
    
5
    
6
    <table class="intro" cellpadding="3" cellspacing="0">
7
       <tr><td align="left"><span class="emphasis">Register for the Knowledge Network for Biocomplexity (KNB)!</span></td></tr>
8
       <tr><td align="left"><span class="regtext">Fill out the form below to register for the KNB.  By registering, 
9
    you will be assigned a user account that allows you to store your
10
    own data as part of the KNB and to collaborate with other research
11
    scientists through the KNB.</td></tr>
12
       <tr><td align="left"><span class="label">Required fields are denoted by an asterisk (*).</td></tr>
13
    </table>
14
    <p>&nbsp;</p>
15
    
16
    [% fieldType = 'text' %]
17
    [% CASE 'registerconfirmed' %]
18
    
19
    
20
    <table class="intro" cellpadding="3" cellspacing="0">
21
      <tr><td align="left"><span class="emphasis">Confirm registration information</span></td></tr>
22
      <tr><td align="left"><span class="regtext">If you have confirmed that the accounts listed above do not 
23
    represent you, you can continue with the registration process 
24
    using the data you provided, summarized below:   </td></tr></table>
25
    
26
    [% fieldType = 'hidden' %]
27
    [% END %]
28
    <p class="label">[% errorMessage %]<p>
29
    <p>
30
    <script type="text/javascript" language="JavaScript1.2">
31
    
32
    <!--
33
      document.loginForm.givenName.focus();
34
      document.loginForm.givenName.select();
35

    
36
      if(window.document.captureEvents != null)
37
      {
38
        window.document.captureEvents(Event.KEYPRESS);
39
        window.document.onKeyPress = doSubmit;
40
      }
41

    
42
      function doSubmit(event)
43
      {
44
        var key;
45
        if(document.all) // IE
46
          key = String.fromCharCode(window.events.keyCode);
47
        else
48
          key = String.fromCharCode(event.which);
49

    
50
        if(key == "\r" || key == "\n")
51
          document.loginForm.submit();
52
      }
53
    // -->
54
    </script>
55

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