1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Patrons › [% IF ( newpassword ) %]Password Updated [% ELSE %]Update Password for [% surname %], [% firstname %][% END %]</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <script type="text/JavaScript">
6 $(document).ready(function() {
7 $("#changepasswordf").submit(function(){
8 if($("input[name='newpassword']").val() != $("input[name='newpassword2']").val()){
9 alert(_("Passwords do not match"));
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();
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>");
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> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> › <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% firstname %] [% surname %]</a> › [% IF ( newpassword ) %]Password Updated[% ELSE %]Change Username and/or Password[% END %]</div>
30 <div id="doc3" class="yui-t2">
35 [% INCLUDE 'members-toolbar.inc' %]
37 [% IF ( newpassword ) %]
38 <h1>Password Updated</h1>
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 %]" />
47 <div class="dialog alert">
48 <h4>The following errors have occurred:</h4>
50 [% IF ( BADUSERID ) %]
51 <li>You have entered a username that already exists. Please choose another one.</li>
53 [% IF ( SHORTPASSWORD ) %]
54 <li><strong>The password entered is too short</strong>. Password must be at least [% minPasswordLength %] characters.</li>
56 [% IF ( NOPERMISSION ) %]
57 <li>You do not have permission to edit this patron's login information.</li>
60 <li><strong>The passwords entered do not match</strong>. Please re-enter the new password.</li>
67 <fieldset class="brief"><legend>Change Username and/or Password for [% firstname %] [% surname %]</legend>
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 %]
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" />
78 <input name="newpassword" id="newpassword" type="password" size="20" />
79 <input name="newpassword" readonly="readonly" disabled="disabled" type="hidden" />
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" />
88 <fieldset class="action"><input type="submit" value="Save" /> <a class="cancel" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">Cancel</a></fieldset>
95 [% INCLUDE 'circ-menu.inc' %]
98 [% INCLUDE 'intranet-bottom.inc' %]