Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc
[koha_ffzg] / 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                             </p>
42                         </div>
43                     [% END # /IF Error_messages %]
44
45                     [% IF ( OpacPasswordChange ) %]
46                         [% IF ( Ask_data ) %]
47                             <form action="/cgi-bin/koha/opac-passwd.pl" name="mainform" id="mainform" method="post">
48                                 <fieldset>
49                                     [% UNLESS ( ShortPass ) %]<div class="alert alert-info">Your password must be at least [% minpasslen %] characters long.</div>[% END %]
50                                     <label for="Oldkey">Current password:</label> <input type="password" id="Oldkey" size="25"  name="Oldkey" />
51                                     <label for="Newkey">New password:</label> <input type="password" id="Newkey"  size="25"  name="Newkey" />
52                                     <label for="Confirm">Re-type new password:</label> <input type="password"  id="Confirm" size="25" name="Confirm" />
53                                 </fieldset>
54                                 <fieldset class="action"><input type="submit" value="Submit changes" class="btn" /> <a href="/cgi-bin/koha/opac-user.pl" class="cancel">Cancel</a></fieldset>
55                             </form>
56                         [% END # /IF Ask_data %]
57                     [% ELSE %]
58                         <div class="alert">You can't change your password.</div>
59                     [% END # /IF OpacPasswordChange %]
60
61                     [% IF ( password_updated ) %]
62                         <div class="alert alert-success">
63                             <h1>Password updated</h1>
64                             Your password has been changed
65                         </div>
66                         <form action="/cgi-bin/koha/opac-user.pl" method="post">
67                             <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
68                             <p><input type="submit" class="btn" value="Return to your record" /></p>
69                         </form>
70                     [% END # /IF password_updated %]
71                 </div> <!-- / #userpasswd -->
72             </div> <!-- / .span10 -->
73         </div> <!-- / .row-fluid -->
74     </div> <!-- / .container-fluid -->
75 </div> <!-- / .main -->
76
77
78
79 [% INCLUDE 'opac-bottom.inc' %]
80 [% BLOCK jsinclude %][% END %]