Merge remote-tracking branch 'origin/new/bug_6328'
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-passwd.tt
1 [% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha Online[% END %] Catalog ›  Account for [% firstname %] [% surname %]
2 [% INCLUDE 'doc-head-close.inc' %]
3 </head>
4 <body id="opac-passwd">
5 <div id="doc3" class="yui-t1">
6    <div id="bd">
7 [% INCLUDE 'masthead.inc' %]
8
9         <div id="yui-main">
10         <div class="yui-b"><div class="yui-g">
11         <div id="userpasswd" class="container">
12         <h3><a href="/cgi-bin/koha/opac-user.pl">[% firstname %] [% surname %]'s account</a> <img src="[% themelang %]l../../images/caret.gif" width="16" height="16" alt="&gt;" border="0" /> Change your Password </h3>
13
14     [% IF ( Error_messages ) %]
15 <div class="dialog error">        <h3>There was a problem with your submission</h3>
16         <p>
17             [% IF ( PassMismatch ) %]
18             Passwords do not match.  Please re-type your new password.
19             [% END %]
20             [% IF ( ShortPass ) %]
21             Your new password must be at least [% minpasslen %] characters long
22             [% END %]
23             [% IF ( WrongPass ) %]
24             Your current password was entered incorrectly.  If this problem persists, please ask a librarian to re-set your password for you.   
25             [% END %]
26         </p></div>
27     [% END %]
28     
29     [% IF ( Ask_data ) %]
30         [% IF ( OpacPasswordChange ) %]
31         <form action="/cgi-bin/koha/opac-passwd.pl" name="mainform" id="mainform" method="post"><fieldset class="brief">
32                         [% UNLESS ( ShortPass ) %]<div class="hint">Your password must be at least [% minpasslen %] characters long.</div>[% END %]
33           <ol>  <li><label for="Oldkey">Current Password:</label> <input type="password" id="Oldkey" size="25"  name="Oldkey" /></li>
34             <li><label for="Newkey">New Password:</label> <input type="password" id="Newkey"  size="25"  name="Newkey" /></li>
35             <li><label for="Confirm">Re-Type New Password:</label> <input type="password"  id="Confirm" size="25" name="Confirm" /></li></ol></fieldset>
36             <fieldset class="action"><input type="submit" value="Submit Changes" class="submit" /> <a href="/cgi-bin/koha/opac-user.pl" class="cancel">Cancel</a></fieldset>
37     </form>
38         [% ELSE %]
39             <div class="dialog alert">You can't change your password.</div>
40         [% END %]
41     [% END %]
42     
43     [% IF ( password_updated ) %]
44         <div class="dialog message"><h1>Password Updated</h1>
45         Your password has been changed</div>
46         <form action="/cgi-bin/koha/opac-user.pl" method="post">
47             <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
48             <p><input type="submit" class="icon back" value="Return to Your Record" /></p>
49         </form>
50     [% END %]
51 </div>
52 </div>
53 </div>
54 </div>
55 <div class="yui-b">
56 <div id="leftmenus" class="container">
57 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
58 </div>
59 </div>
60 </div>
61 [% INCLUDE 'opac-bottom.inc' %]