Bug 7760 - Add ids and classes to every staff page to help with customization (patrons)
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / member-password.tt
blob4eaef3f5e18117183b87b109b862d2162ecbcc76
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Patrons &rsaquo; [% IF ( newpassword ) %]Password Updated [% ELSE %]Update Password for [% surname %], [% firstname %][% END %]</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <script type="text/JavaScript">
5 //<![CDATA[
6     $(document).ready(function() {
7         $("#changepasswordf").submit(function(){
8             if($("input[name='newpassword']").val() != $("input[name='newpassword2']").val()){
9                 alert(_("Passwords do not match"));
10                 return false;
11             } else {
12                 return true;
13             }
14         });
15         $("#fillrandom").live('click', function() {
16             $("#newpassword").after("<input type=\"text\" name=\"newpassword\" value=\"[% defaultnewpassword %]\">").remove();
17             $("#newpassword2").after("<input type=\"text\" name=\"newpassword2\" value=\"[% defaultnewpassword %]\">").remove();
18         });
19         $("div.hint").eq(0).after(" <div class=\"hint\"><a href=\"#\" id=\"fillrandom\">"+_("Click to fill with a randomly generated suggestion. ")+"<strong>"+_("Passwords will be displayed as text")+"</strong>.</a></div>");
20     });
21 //]]>
22 </script>
23 </head>
24 <body id="pat_member-password" class="pat">
25 [% INCLUDE 'header.inc' %]
26 [% INCLUDE 'patron-search.inc' %]
28 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>  &rsaquo; <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% firstname %] [% surname %]</a> &rsaquo; [% IF ( newpassword ) %]Password Updated[% ELSE %]Change Username and/or Password[% END %]</div>
30 <div id="doc3" class="yui-t2">
31    
32    <div id="bd">
33         <div id="yui-main">
34         <div class="yui-b">
35 [% INCLUDE 'members-toolbar.inc' %]
37 [% IF ( newpassword ) %]
38 <h1>Password Updated</h1>
40 [% ELSE %]
42 <form method="post" id="changepasswordf" action="/cgi-bin/koha/members/member-password.pl">
43 <input type="hidden" name="destination" value="[% destination %]" />    
44 <input type="hidden" name="cardnumber" value="[% cardnumber %]" />
45 <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" />
46         [% IF ( errormsg ) %]
47                 <div class="dialog alert">
48                 <h4>The following errors have occurred:</h4>
49                 <ul>
50                 [% IF ( BADUSERID ) %]
51                 <li>You have entered a username that already exists.  Please choose another one.</li>
52                 [% END %]
53                 [% IF ( SHORTPASSWORD ) %]
54                 <li><strong>The password entered is too short</strong>. Password must be at least [% minPasswordLength %] characters.</li>
55                 [% END %]
56                 [% IF ( NOPERMISSION ) %]
57                 <li>You do not have permission to edit this patron's login information.</li>
58                 [% END %]
59                 [% IF ( NOMATCH ) %]
60                 <li><strong>The passwords entered do not match</strong>. Please re-enter the new password.</li>
61                 [% END %]
62                 </ul>
63                 </div>
64         [% END %]
67         <fieldset class="brief"><legend>Change Username and/or Password for [% firstname %] [% surname %]</legend>
68         <ol>
69         <li><label for="newuserid">New Username:</label>
70         <input type="hidden" name="member" value="[% borrowernumber %]" /><input type="text" id="newuserid" name="newuserid" size="20" value="[% userid %]" /></li>
71         <li><label for="newpassword">New Password:</label>
72         <div class="hint">Koha cannot display existing passwords. Leave the field blank to leave password unchanged.</div>
73         [% IF ( minPasswordLength ) %]<div class="hint">Minimum password length: [% minPasswordLength %]</div>[% END %]
74         [% IF ( NOMATCH ) %]
75         <input name="newpassword"  id="newpassword" type="password" size="20" class="focus" />
76         <input name="newpassword" id="newpassword_random" readonly="readonly" disabled="disabled" type="hidden" />
77         [% ELSE %]
78         <input name="newpassword"  id="newpassword" type="password" size="20" />
79         <input name="newpassword" readonly="readonly" disabled="disabled" type="hidden" />
80         [% END %]
81         </li>
82         <li><label for="newpassword2">Confirm New Password:</label>
83         <input name="newpassword2"  id="newpassword2" type="password" size="20" />
84         <input name="newpassword2" id="newpassword2_random" readonly="readonly" disabled="disabled" type="hidden" />
85         </li>
86         </ol>
87 </fieldset>
88         <fieldset class="action"><input type="submit" value="Save" /> <a class="cancel" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">Cancel</a></fieldset>
89 </form>[% END %]
91 </div>
92 </div>
94 <div class="yui-b">
95 [% INCLUDE 'circ-menu.inc' %]
96 </div>
97 </div>
98 [% INCLUDE 'intranet-bottom.inc' %]