]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/opac/password_reset.tt2
TPac; disallow certain actions for captured holds
[working/Evergreen.git] / Open-ILS / src / templates / opac / password_reset.tt2
1 [%  PROCESS "opac/parts/header.tt2";
2     PROCESS "opac/parts/config.tt2";
3     WRAPPER "opac/parts/base.tt2";
4     INCLUDE "opac/parts/topnav.tt2";
5     ctx.page_title = l('Library system password reset request form');
6 %]
7 <div id="search-wrapper">
8     [% INCLUDE "opac/parts/printnav.tt2" %]
9     [% INCLUDE "opac/parts/searchbar.tt2" %]
10 </div>
11
12 [%  
13     uuid = ctx.page_args.0;
14     msg_map = {
15         SUCCESS => l('Password has been reset'),
16         NO_MATCH => l('Passwords did not match. Please try again'),
17         NOT_ACTIVE => l('This was not an active password reset request. Your password has not been reset.'),
18         NOT_STRONG => l('The password you chose was not considered complex enough to protect your account. Your password has not been reset.'),
19         TWO_PASSWORDS => l('Please enter and repeat your new password.'),
20         REQUEST_SUCCESS => l('Your user name or barcode has been submitted for a password reset. ' _ 
21             'If a matching account with an email address is found, you will soon receive an email at that address with further instructions for resetting your password.')
22     }
23 %]
24 <div id="content-wrapper">
25     <div id="main-content">
26         <br/>
27         <p class='[% ctx.pwreset.style %]'>[% stat = ctx.pwreset.status; msg_map.$stat %]</p>
28         [% IF uuid %]
29             [% IF stat == 'SUCCESS' %]
30                 <p><a href='[% mkurl(ctx.opac_root _ '/login', {}, 1) %]'>[% l('Log in to My Account') %]</a>
31             [% ELSE %]
32             <form method="post">
33                 <input type='hidden' name='uuid' value='[% uuid | html %]'/>
34                 <table>
35                     <tr>
36                         <td><label for="pwd1">[% l('New password:') %]</label></td>
37                         <td><input type="password" name="pwd1"/></td>
38                     </tr>
39                     <tr>
40                         <td><label for="pwd2">[% l('Re-enter new password:') %]</label></td>
41                         <td><input type="password" name="pwd2"/></td>
42                     </tr>
43                     <tr>
44                         <td>
45                             <button name="submit" id="submitButton" type="submit">[% l('Submit') %]</button>
46                         </td>
47                     </tr>
48                 </table>
49             </form>
50             [% END %]
51         [% ELSIF !ctx.pwreset.status %]
52         <h2>[% l('Please enter your user name or barcode to identify your library account and request a password reset') %]</h2>
53         <form method="post">
54             <table>
55                 <tr>
56                     <td><label for="barcode">[% l('Barcode:') %] </label></td>
57                     <td><input type="text" id="barcode" name="barcode"/></td>
58                 </tr>
59                 <tr>
60                     <td><label for="username">[% l('User name:') %] </label></td>
61                     <td><input type="text" id="username" name="username"/></td>
62                 </tr>
63             </table>
64             <!--<label for="email">[% l('Email address associated with the account:') %] </label><input type="text" name="email"/></br>-->
65             <button name="submit" id="submitButton" type="submit">[% l('Submit') %]</button>
66         </form>
67         [% END %]
68     </div>
69 </div>
70 [% END %]
71