Project

General

Profile

« Previous | Next » 

Revision 2342

Added by sgarg almost 20 years ago

Integrating ldap templates into metacat CVS tree

View differences:

lib/style/common/templates/ldapChangePassSuccess.tmpl
1
    <h2>Your password has been changed!</h2>
2
    <p>You have successfully changed your account password.
3
    Remember it :-) 
4
    Thanks for your interest in the KNB!
5
    </p>
6

  
0 7

  
lib/style/common/templates/ldapResetPass.tmpl
1
    <h2>Forgot your KNB Password?</h2>
2
    <p>Fill out the form below to reset your KNB password.  
3
    You will need to know your username.  We will change the password
4
    for you to a new random password, and email it to you at the 
5
    address registered for the account. 
6
    </p>
7
    <p>Required fields are shown in red.</p>
8
    <p class="emphasis">[% errorMessage %]<p>
9
    <p>
10
    <form name="passwdForm" action="@cgiurl@" method="post">
11
      <input type="hidden" name="stage" value="[% stage %]"/>
12
      <input type="hidden" name="cfg" value="[% cfg %]"/>
13
      <table border="0">
14
        <tr>
15
          <td align="left" class="required">
16
            Username:
17
          </td>
18
          <td align="right">
19
            <input name="uid" type="text"
20
                   [% IF allParams.uid %]
21
                   value="[% allParams.uid %]"
22
                   [% END %]/>
23
          </td>
24
        </tr>
25
        <tr>
26
          <td align="left" class="required">
27
            Organization:
28
          </td>
29
          <td align="right">
30
            <select name="o">
31
 [% FOREACH org = orgList %]
32
		[% IF allParams.o == org %]
33
                  <option value="[% org %]" selected>[% org %]</option>
34
                [% ELSE %]
35
                  <option value="[% org %]">[% org %]</option>
36
                [% END %]
37
              [% END %]
38
            </select>
39
          </td>
40
        </tr>
41
        <tr>
42
          <td>
43
          </td>
44
          <td align="right">
45
            <input name="action" type="submit" value="Reset password"/>
46
          </td>
47
        </tr>
48
      </table>
49
    </form>
50
    </p>
0 51

  
lib/style/common/templates/ldapRegisterLter.tmpl
1
    <h2>LTER Account Information</h2>
2
    <p>KNB accounts for all LTER affiliated scientists already exist
3
    for every scientist in the
4
    <a href="http://intranet.lternet.edu">LTER Personnel Directory</a>.
5
    So, if you are an LTER scientist, it is likely that you already 
6
    have an account.  Your username and password from the
7
    <a href="http://intranet.lternet.edu">LTER Personnel Directory</a> 
8
    can be used to log into the KNB.  
9
    </p>
10
    <p>
11
    The username for most LTER scientists will be your first inital 
12
    and lastname (e.g., someone named Jane Doe would have a username "jdoe").
13
    If you have forgotten your LTER password it can be 
14
    <a href="http://sql.lternet.edu/scripts/intranet/sendmemypassword.pl">mailed 
15
    to you</a>.
16
    </p>
17
    <p>
18
    If you are an LTER scientist and you can not find your name in the 
19
    <a href="http://intranet.lternet.edu">LTER Personnel Directory</a> 
20
    then please contact your site data manager to have an account created.
21
    </p>
0 22

  
lib/style/common/templates/ldapChangePass.tmpl
1
    <h2>Change your KNB Password</h2>
2
    <p>Fill out the form below to change your KNB password.  
3
    You will need to know your username, your old password, and choose
4
    a new password (which is entered twice for confirmation).
5
    <a href="@cgiurl@?stage=resetpass&cfg=[% cfg %]">Forgot your password?</a>
6
    </p>
7
    <p>Required fields are shown in red.</p>
8
    <p class="emphasis">[% errorMessage %]<p>
9
    <p>
10
    <form name="passwdForm" action="@cgiurl@" method="post">
11
      <input type="hidden" name="stage" value="[% stage %]"/>
12
      <input type="hidden" name="cfg" value="[% cfg %]"/>
13
      <table border="0">
14
        <tr>
15
          <td align="left" class="required">
16
            Username:
17
          </td>
18
          <td align="right">
19
            <input name="uid" type="text"
20
                   [% IF allParams.uid %]
21
                   value="[% allParams.uid %]"
22
                   [% END %]/>
23
          </td>
24
        </tr>
25
        <tr>
26
          <td align="left" class="required">
27
            Organization:
28
          </td>
29
          <td align="right">
30
            <select name="o">
31
              [% FOREACH org = orgList %]
32
		[% IF allParams.o == org %]
33
                  <option value="[% org %]" selected>[% org %]</option>
34
                [% ELSE %]
35
                  <option value="[% org %]">[% org %]</option>
36
                [% END %]
37
              [% END %]
38
            </select>
39
          </td>
40
        </tr>
41
        <tr>
42
          <td align="left" class="required">
43
            Old password:
44
          </td>
45
          <td align="right">
46
            <input name="oldpass" type="password" />
47
          </td>
48
        </tr>
49
        <tr>
50
          <td align="left" class="required">
51
            New password:
52
          </td>
53
          <td align="right">
54
            <input name="userPassword" type="password" />
55
          </td>
56
        </tr>
57
        <tr>
58
          <td align="left" class="required">
59
            Confirm new password:
60
          </td>
61
          <td align="right">
62
            <input name="userPassword2" type="password" />
63
          </td>
64
        </tr>
65
        <tr>
66
          <td>
67
          </td>
68
          <td align="right">
69
            <input name="action" type="submit" value="Change password"/>
70
          </td>
71
        </tr>
72
      </table>
73
    </form>
74
    </p>
0 75

  
lib/style/common/templates/ldapRegisterSuccess.tmpl
1
    <h2>Registration Succeeded!</h2>
2
    <p>You have successfully created an account on the 
3
    <a href="http://knb.ecoinformatics.org">Knowledge 
4
    Network for Biocomplexity (KNB)</a>.  You can use this account
5
    to share data with collaborators or with the general scientific
6
    community by downloading and installing the 
7
    <a href="http://knb.ecoinformatics.org/software/morpho">Morpho</a>
8
    software package.  Thanks for your interest in the KNB!
9
    </p>
10

  
0 11

  
lib/style/common/templates/ldapRegister.tmpl
1
    [% SWITCH stage %]
2
    [% CASE 'register' %]
3
    <h2>Register for the KNB!</h2>
4
    <p>Fill out the form below to register for the KNB.  By registering, 
5
    you will be assigned a user account that allows you to store your
6
    own data as part of the KNB and to collaborate with other research
7
    scientists through the KNB.
8
    </p>
9
    <p>Required fields are shown in red.</p>
10
    [% fieldType = 'text' %]
11
    [% CASE 'registerconfirmed' %]
12
    <h2>Confirm registration information</h2>
13
    <p>If you have confirmed that the accounts listed above do not 
14
    represent you, you can continue with the registration process 
15
    using the data you provided, summarized below:
16
    </p>
17
    [% fieldType = 'hidden' %]
18
    [% END %]
19
    <p class="emphasis">[% errorMessage %]<p>
20
    <p>
21
    <script type="text/javascript" language="JavaScript1.2">
22
    <!--
23
      document.loginForm.givenName.focus();
24
      document.loginForm.givenName.select();
25

  
26
      if(window.document.captureEvents != null)
27
      {
28
        window.document.captureEvents(Event.KEYPRESS);
29
        window.document.onKeyPress = doSubmit;
30
      }
31

  
32
      function doSubmit(event)
33
      {
34
        var key;
35
        if(document.all) // IE
36
          key = String.fromCharCode(window.events.keyCode);
37
        else
38
          key = String.fromCharCode(event.which);
39

  
40
        if(key == "\r" || key == "\n")
41
          document.loginForm.submit();
42
      }
43
    // -->
44
    </script>
45

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

  
lib/style/common/templates/ldapRegisterFailed.tmpl
1
    <h2>Registration Failed</h2>
2
    <p>There was a problem creating your account.  The error was:<p>
3

  
4
    <p class="emphasis">[% errorMessage %]</p>
5
    
6
    </p>The most likely
7
    problem is that the username that you chose already exists.  Pick
8
    a different username and try submitting the form again.
9
    </p>
10

  
0 11

  
lib/style/common/templates/ldapRegisterMatch.tmpl
1
    <h2>Similar accounts exist</h2>
2
    <p>KNB accounts already exist with information that is similar to
3
    the information you provided.  <span class="emphasis">Please check 
4
    the list of similar accounts below to determine if you already 
5
    have an account.</span>  If so, you can use 
6
    that account.  If not, then you can press "Continue" to create an
7
    account despite the similarities to existing accounts.
8
    </p>
9

  
10
    <p>
11
    [% foundAccounts %]
12
    </p>
13

  
0 14

  
lib/style/common/templates/ldapResetPassSuccess.tmpl
1
    <h2>Your password has been Reset!</h2>
2
    [% IF errorMessage %]
3
    <p class="emphasis">[% errorMessage %]<p>
4
    [% ELSE %]
5
    <p>Your new password has been emailed to the account registered for 
6
    this KNB account.</p>
7
    [% END %]
8
    <p>
9
    Thanks for participating in the KNB!
10
    </p>
11

  
0 12

  

Also available in: Unified diff