Bug 14544: QA fixes - some minor bug fixes
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-passwd.tt
1 [% USE Koha %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog &rsaquo; Change your password</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 [% BLOCK cssinclude %][% END %]
6 </head>
7 [% INCLUDE 'bodytag.inc' bodyid='opac-passwd' %]
8 [% INCLUDE 'masthead.inc' %]
9
10 <div class="main">
11     <ul class="breadcrumb">
12         <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
13         <li><a href="/cgi-bin/koha/opac-user.pl">[% firstname %] [% surname %]</a> <span class="divider">&rsaquo;</span></li>
14         <li><a href="#">Change your password</a></li>
15     </ul>
16
17     <div class="container-fluid">
18         <div class="row-fluid">
19             <div class="span2">
20                 <div id="navigation">
21                     [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
22                 </div>
23             </div>
24             <div class="span10">
25                 <div id="userpasswd">
26                     <h3>Change your password </h3>
27
28                     [% IF ( Error_messages ) %]
29                         <div class="alert">
30                             <h3>There was a problem with your submission</h3>
31                             <p>
32                                 [% IF ( PassMismatch ) %]
33                                 Passwords do not match.  Please re-type your new password.
34                                 [% END %]
35                                 [% IF ( ShortPass ) %]
36                                 Your new password must be at least [% minpasslen %] characters long.
37                                 [% END %]
38                                 [% IF ( WrongPass ) %]
39                                 Your current password was entered incorrectly.  If this problem persists, please ask a librarian to re-set your password for you.
40                                 [% END %]
41                                 [% IF PasswordContainsTrailingSpaces %]
42                                     Your password contains leading and/or trailing spaces.
43                                 [% END %]
44                             </p>
45                         </div>
46                     [% END # /IF Error_messages %]
47
48                     [% IF ( OpacPasswordChange ) %]
49                         [% IF ( Ask_data ) %]
50                             <form action="/cgi-bin/koha/opac-passwd.pl" name="mainform" id="mainform" method="post">
51                                 <fieldset>
52                                     [% UNLESS ( ShortPass ) %]<div class="alert alert-info">Your password must be at least [% minpasslen %] characters long.</div>[% END %]
53                                     <label for="Oldkey">Current password:</label> <input type="password" id="Oldkey" size="25"  name="Oldkey" />
54                                     <label for="Newkey">New password:</label> <input type="password" id="Newkey"  size="25"  name="Newkey" />
55                                     <label for="Confirm">Re-type new password:</label> <input type="password"  id="Confirm" size="25" name="Confirm" />
56                                 </fieldset>
57                                 <fieldset class="action"><input type="submit" value="Submit changes" class="btn" /> <a href="/cgi-bin/koha/opac-user.pl" class="cancel">Cancel</a></fieldset>
58                             </form>
59                         [% END # /IF Ask_data %]
60                     [% ELSE %]
61                         <div class="alert">You can't change your password.</div>
62                     [% END # /IF OpacPasswordChange %]
63
64                     [% IF ( password_updated ) %]
65                         <div class="alert alert-success">
66                             <h1>Password updated</h1>
67                             Your password has been changed
68                         </div>
69                         <form action="/cgi-bin/koha/opac-user.pl" method="post">
70                             <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
71                             <p><input type="submit" class="btn" value="Return to your record" /></p>
72                         </form>
73                     [% END # /IF password_updated %]
74                 </div> <!-- / #userpasswd -->
75             </div> <!-- / .span10 -->
76         </div> <!-- / .row-fluid -->
77     </div> <!-- / .container-fluid -->
78 </div> <!-- / .main -->
79
80
81
82 [% INCLUDE 'opac-bottom.inc' %]
83 [% BLOCK jsinclude %][% END %]