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