4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Koha › Patrons › [% IF ( opadd ) %]Add[% ELSIF ( opduplicate ) %]Duplicate[% ELSE %] Modify[% END %] patron [% IF (firstname) %][% firstname %] [% END %][% IF (surname) %][% surname %] [% END %]([%IF ( categoryname ) %][% categoryname %][% ELSE %][% IF ( I ) %]Organization[% END %][% IF ( A ) %]Adult[% END %][% IF ( C ) %]Child[% END %][% IF ( P ) %]Professional[% END %][% IF ( S ) %]Staff[% END %][% END %])</title>
6 [% INCLUDE 'doc-head-close.inc' %]
7 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.fixFloat.js"></script>
8 [% INCLUDE 'calendar.inc' %]
9 <script type="text/javascript">
11 $(document).ready(function() {
13 $("#saverecord").css({ 'margin-left': 0 });
14 var original_offset = $("#toolbar").position().top;
15 var additional_height = $("#filters").height();
16 $('#toolbar').fixFloat({ 'originalOffset': original_offset });
17 $("#filteraction_on").on("click", function(){
18 $(window).off('scroll');
19 $("#toolbar").css({ top: original_offset + additional_height });
20 $('#toolbar').fixFloat({ 'originalOffset': original_offset + additional_height });
22 $("#filteraction_off").on("click", function(){
23 $(window).off('scroll');
24 $("#toolbar").css({ top: original_offset });
25 $('#toolbar').fixFloat({ 'originalOffset': original_offset });
29 update_category_code( "[% categorycode %]" );
31 if ( $("#categorycode_entry").length > 0 ){
32 var category_code = $("#categorycode_entry").find("option:selected").val();
33 update_category_code( category_code );
38 $(document).ready(function() {
40 var toggle_quick_add = $(".toggle_quick_add");
41 $(toggle_quick_add).click(function(e){
42 toggle_quick_add.toggle();
46 if( $("#entryform:visible").length ) {
47 toggle_to = "#quick_add_form label";
48 toggle_from = "#entryform label";
50 toggle_to="#entryform label";
51 toggle_from = "#quick_add_form label";
53 $(toggle_from).each(function() {
54 var input_label = $(this).attr('for');
55 if ( input_label == 'sex-male' || input_label == 'sex-none' || input_label == 'sex-female' ) {
56 $(toggle_to+"[for='"+input_label+"']").next().prop('checked', $(this).next().prop('checked') );
59 $(toggle_to+"[for='"+input_label+"']").next().val( $(this).next().val() );
62 $(".toggler").toggle();
65 $("#save_quick_add").click(function(){
66 $("#quick_add_form").validate();
67 if( $("#quick_add_form").valid()){
68 $('.toggle_quick_add').click();
69 $('#saverecord').click();
74 $("#entryform").validate({
78 password_strong: true,
79 password_no_spaces: true
88 $("#saverecord").click(function(){
89 if( check_form_borrowers() ){
90 $("#entryform").submit();
94 $('#duplicate').on('click', function() {
95 $("input[name='op']").val('modify');
96 $("input[name='borrowernumber']").val('[% check_member %]');
97 $("input[name='check_member']").val('');
98 $('#entryform').submit();
101 $('#not-duplicate').on('click', function() {
102 $("input[name='nodouble']").val('1');
103 $('#entryform').submit();
107 var MSG_SEPARATOR = _("Separator must be / in field %s");
108 var MSG_INCORRECT_DAY = _("Invalid day entered in field %s");
109 var MSG_INCORRECT_MONTH = _("Invalid month entered in field %s");
110 var MSG_INCORRECT_YEAR = _("Invalid year entered in field %s");
111 var MSG_DUPLICATE_PATRON = _("Warning: Duplicate patron");
112 var MSG_DUPLICATE_ORGANIZATION = _("Warning: Duplicate organization");
113 var MSG_LATE_EXPIRY = _("Warning: Expiration date falls before enrollment date");
114 var MSG_DUPLICATE_SUSPICION = _("Please confirm whether this is a duplicate patron");
115 var MSG_MONTH = _("%s month")
116 var MSG_MONTHS = _("%s months")
117 var MSG_YEAR = _("%s year")
118 var MSG_YEARS = _("%s years")
119 var LABEL_CHANGE = _("Change");
120 var LABEL_SET_TO_PATRON = _("Set to patron");
121 var LABEL_AGE = _("Age");
125 <script type="text/javascript" src="[% interface %]/[% theme %]/js/members.js"></script>
127 <body id="pat_memberentrygen" class="pat">
128 [% INCLUDE 'header.inc' %]
129 [% INCLUDE 'patron-search.inc' %]
131 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> ›
132 [% IF (firstname || surname ) %] <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% IF (firstname) %][% firstname | html %] [% END %][% IF (surname) %][% surname | html %] [% END %]</a> ›[% END %]
133 <strong>[% IF ( opadd ) %]Add[% ELSIF ( opduplicate ) %]Duplicate[% ELSE %] Modify[% END %] patron ([%IF ( categoryname ) %][% categoryname %][% ELSE %][% IF ( I ) %]Organization[% END %][% IF ( A ) %]Adult[% END %][% IF ( C ) %]Child[% END %][% IF ( P ) %]Professional[% END %][% IF ( S ) %]Staff[% END %][% END %])</strong>
135 [% IF ( opadd ) %]<div id="doc" class="yui-t7">[% ELSE %]<div id="doc3" class="yui-t2">[% END %]
141 [% IF ( error_alert == "no_email" ) %]
142 <div class="error">This member has no email</div>
144 <div class="error">[% error_alert %]</div>
148 <div class="dialog message">Email has been sent.</div>
151 [% INCLUDE 'noadd-warnings.inc' %]
153 [% UNLESS ( no_add ) %]
154 <h1>[% IF ( opadd ) %]Add[% ELSIF ( opduplicate ) %]Duplicate[% ELSE %] Modify[% END %] patron [% IF (firstname) %][% firstname | html %] [% END %][% IF (surname) %][% surname | html %] [% END %]([%IF ( categoryname ) %][% categoryname %][% ELSE %][% IF ( I ) %]Organization[% END %][% IF ( A ) %]Adult[% END %][% IF ( C ) %]Child[% END %][% IF ( P ) %]Professional[% END %][% IF ( S ) %]Staff[% END %][% END %])</h1>
156 [% IF quickadd && opadd && !check_member %]
157 <a href="#" class="toggle_quick_add"><i class="fa fa-plus-square"></i> Show full form</a>
158 <a href="#" class="toggle_quick_add" style="display:none"><i class="fa fa-minus-square"></i> Show brief form</a>
161 [% IF ( check_member ) %]
162 <div class="dialog alert">
163 <h3>Duplicate patron record?</h3>
164 <p><a class="popup" href="#" onclick="Dopop('moremember.pl?print=brief&borrowernumber=[% check_member %]');return false;" >View existing record</a></p>
165 <button id="duplicate" type="submit" class="new"><i class="fa fa-pencil"></i> It is a duplicate.
166 Edit existing record</button>
168 <button type="submit" id="not-duplicate" class="new"><i class="fa fa-plus"></i> Not a duplicate.
169 Save as new record</button>
174 <div class="dialog alert">
175 <p>The following fields are wrong. Please fix them.</p>
177 [% IF ( ERROR_login_exist ) %]
178 <li id="ERROR_login_exist">Username/password already exists.</li>
180 [% IF ERROR_cardnumber_already_exists %]
181 <li id="ERROR_cardnumber">Cardnumber already in use.</li>
183 [% IF ERROR_cardnumber_length %]
184 <li id="ERROR_cardnumber">Cardnumber length is incorrect.</li>
186 [% IF ( ERROR_age_limitations ) %]
187 <li id="ERROR_age_limitations">Patron's age is incorrect for their category.
188 Ages allowed are [% age_low %]-[% age_high %].</li>
190 [% IF ( ERROR_branch ) %]
191 <li id="ERROR_branch">Library is invalid.</li>
193 [% IF ( ERROR_dateofbirth ) %]
194 <li id="ERROR_dateofbirth">Date of birth is invalid.</li>
196 [% IF ( ERROR_dateenrolled ) %]
197 <li id="ERROR_dateenrolled">Date of enrollment is invalid.</li>
199 [% IF ( ERROR_dateexpiry ) %]
200 <li id="ERROR_dateexpiry">Date of expiration is invalid.</li>
202 [% IF ( ERROR_password_too_short ) %]
203 <li id="ERROR_short_password">Password must be at least [% minPasswordLength %] characters long.</li>
205 [% IF ( ERROR_password_too_weak ) %]
206 <li id="ERROR_weak_password">Password must contain at least one digit, one lowercase and one uppercase.</li>
208 [% IF ( ERROR_password_has_whitespaces ) %]
209 <li id="ERROR_weak_password">Password must not contain leading or trailing whitespaces.</li>
211 [% IF ( ERROR_password_mismatch ) %]
212 <li id="ERROR_password_mismatch">Passwords do not match.</li>
214 [% IF ( ERROR_extended_unique_id_failed ) %]
215 <li id="ERROR_extended_unique_id_failed"><strong>[% ERROR_extended_unique_id_failed_description %]:</strong> Attribute value "[% ERROR_extended_unique_id_failed_value %]" is already in use by another patron record.</li>
217 [% IF ERROR_bad_email %]
218 <li id="ERROR_bad_email">The primary email is invalid.</li>
220 [% IF ERROR_bad_email_secondary %]
221 <li id="ERROR_bad_email_secondary">The secondary email is invalid.</li>
223 [% IF ERROR_bad_email_alternative %]
224 <li id="ERROR_bad_email_alternative">The alternative email is invalid.</li>
231 <div id="toolbar" class="btn-toolbar">
232 [% UNLESS ( check_member ) %]
233 [% IF quickadd && opadd %]
234 <button class="btn btn-default btn-sm toggler" id="save_quick_add" name="save"><i class="fa fa-save"></i> Save</button>
236 <button class="btn btn-default btn-sm toggler" id="saverecord" name="save" ><i class="fa fa-save"></i> Save</button>
238 <a class="btn btn-default btn-sm" href="/cgi-bin/koha/members/member.pl" class="toggler save_entryform">
240 <a class="btn btn-default btn-sm" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">
242 <i class="fa fa-times"></i> Cancel
247 <form name="form" id="entryform" action="/cgi-bin/koha/members/memberentry.pl" method="post" autocomplete="off" class="toggler" >
248 [% UNLESS ( check_member ) %]
249 <input type="hidden" name="nodouble" value="[% nodouble %]" />
251 <!-- field always hidden in different form (1,2,3) -->
252 <input type="hidden" name="BorrowerMandatoryField" value="[% BorrowerMandatoryField %]" />
253 <input type="hidden" name="category_type" value="[% category_type %]" />
254 <input type="hidden" name="updtype" value="[% updtype %]" />
255 <input type="hidden" name="destination" value="[% destination %]" />
256 <input type="hidden" name="check_member" value="[% check_member %]" />
257 <input type="hidden" name="borrowernumber" value="[% borrowernumber UNLESS opduplicate %]" />
258 <input type="hidden" name="nodouble" value="[% nodouble UNLESS opduplicate %]" />
259 <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
260 [% IF ( step ) %]<input type="hidden" name="step" value="[% step %]" />[% END %]
261 [% IF ( opadd ) %]<input type="hidden" name="op" value="insert" />
262 [% ELSIF ( opduplicate ) %]
263 <input type="hidden" name="op" value="insert" />
265 <input type="hidden" name="op" value="save" />
266 [% IF step == 4 || step == 5 || step == 6 || step == 2 || step == 1 %]
267 [%# Only put the cardnumber if we arent showing it in the form later %]
269 <input type="hidden" name="cardnumber" value="[% cardnumber %]" />
275 [%UNLESS notitle && nosurname && nofirstname && nodateofbirth && noinitials && noothernames &&nosex %]
276 <fieldset class="rows" id="memberentry_identity">
277 <legend id="identity_lgd">[% IF ( I ) %]Organization [% ELSE %]Patron [% END %]identity</legend>
281 [% IF Koha.Preference('BorrowersTitles') %]
283 [% IF ( mandatorytitle ) %]
284 <label for="btitle" class="required">
289 <select id="btitle" name="title">
290 <option value=""></option>
291 [% FOREACH t IN Koha.Preference('BorrowersTitles').split('\|') %]
293 <option value="[% t %]" selected="selected">[% t %]</option>
295 <option value="[% t %]">[% t %]</option>
299 [% IF ( mandatorytitle ) %]<span class="required">Required</span>[% END %]
304 [% UNLESS nosurname %]
306 [% IF ( mandatorysurname ) %]
307 <label for="surname" class="required">
309 <label for="surname">
312 [% IF ( uppercasesurnames ) %]
313 <input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20" value="[% surname %]" />
315 <input type="text" id="surname" name="surname" size="20" value="[% surname %]" />
317 [% IF ( mandatorysurname ) %]<span class="required">Required</span>[% END %]
321 [% UNLESS nofirstname %]
323 [% IF ( mandatoryfirstname ) %]
324 <label for="firstname" class="required">
326 <label for="firstname">
329 <input type="text" id="firstname" name="firstname" size="20" value="[% firstname | html UNLESS opduplicate %]" />
330 [% IF ( mandatoryfirstname ) %]<span class="required">Required</span>[% END %]
333 [% UNLESS nodateofbirth %]
335 [% IF ( mandatorydateofbirth ) %]
336 <label for="dateofbirth" class="required">
338 <label for="dateofbirth">
340 Date of birth: </label>
342 <input type="text" id="dateofbirth" name="dateofbirth" size="20" onchange="write_age();" value="[% dateofbirth UNLESS opduplicate %]" class="datepicker" />
344 [% IF ( mandatorydateofbirth ) %]<span class="required">Required</span>[% END %]
345 [% IF ( ERROR_dateofbirth ) %]<span class="required">(Error)</span>[% END %]
346 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
349 [% UNLESS noinitials %]
351 [% IF ( mandatoryinitials ) %]
352 <label for="initials" class="required">
354 <label for="initials">
357 <input type="text" id="initials" name="initials" size="20" value="[% initials | html UNLESS opduplicate %]" />
358 [% IF ( mandatoryinitials ) %]<span class="required">Required</span>[% END %]
362 [% UNLESS noothernames %]
364 [% IF ( mandatoryothernames ) %]
365 <label for="othernames" class="required">
367 <label for="othernames">
370 <input type="text" id="othernames" name="othernames" size="20" value="[% othernames | html UNLESS opduplicate %]" />
371 [% IF ( mandatoryothernames ) %]<span class="required">Required</span>[% END %]
372 [% IF ( I ) %]<input type="hidden" name="sex" value="N" />[% END %]
379 [% UNLESS ( opduplicate ) %]
381 <label for="sex-female"><input type="radio" name="sex" id="sex-female" value="F" checked="checked" /> Female</label>
383 <label for="sex-female"><input type="radio" name="sex" id="sex-female" value="F" /> Female</label>
386 <label for="sex-male"><input type="radio" name="sex" id="sex-male" value="M" checked="checked" /> Male</label>
388 <label for="sex-male"><input type="radio" name="sex" id="sex-male" value="M" /> Male</label>
391 <label for="sex-none"><input type="radio" name="sex" id="sex-none" value="" checked="checked" /> None specified</label>
393 <label for="sex-none"><input type="radio" name="sex" id="sex-none" value="" /> None specified</label>
396 <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" />
397 <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" />
398 <label for="sex-none">None specified </label><input type="radio" name="sex" id="sex-none" value="" checked="checked" />
406 [% END # hide fieldset %]
408 [% IF ( showguarantor ) %]
409 <input type="hidden" id="guarantorid" name="guarantorid" value="[% guarantorid %]" />
411 <input type="hidden" name="branchcode" value="[% branchcode %]" />
413 <fieldset id="memberentry_guarantor" class="rows">
414 <legend id="guarantor_lgd">Guarantor information</legend>
417 [% IF ( guarantorid ) %]
418 <li id="contact-details">
420 <li id="contact-details" style="display: none">
422 <span class="label">Organization #:</span> [% IF ( guarantorid ) %] <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantorid %]" target="blank">[% guarantorid %]</a>[% END %]
425 <label for="contactname">Organization name: </label>
426 [% IF ( guarantorid ) %]
427 <span>[% contactname %]</span>
428 <input name="contactname" id="contactname" type="hidden" size="20" value="[% contactname | html %]" />
430 <input name="contactname" id="contactname" type="text" size="20" value="[% contactname | html %]" />
435 [% IF ( guarantorid ) %]
436 <li id="contact-details">
438 <li id="contact-details" style="display: none">
440 <span class="label">Patron #:</span> [% IF ( guarantorid ) %] <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantorid %]" target="blank">[% guarantorid |html %]</a>[% END %]
442 [% UNLESS nocontactname %]
444 <label for="contactname">Surname: </label>
445 [% IF ( guarantorid ) %]
446 <span>[% contactname %]</span>
447 <input name="contactname" id="contactname" type="hidden" size="20" value="[% contactname | html %]" />
449 <input name="contactname" id="contactname" type="text" size="20" value="[% contactname | html %]" />
453 [% UNLESS nocontactfirstname %]
455 <label for="contactfirstname">First name: </label>
456 [% IF ( guarantorid ) %]
457 <span>[% contactfirstname %]</span>
458 <input name="contactfirstname" id="contactfirstname" type="hidden" size="20" value="[% contactfirstname | html %]" />
460 <input name="contactfirstname" id="contactfirstname" type="text" size="20" value="[% contactfirstname | html %]" />
464 [% IF ( relshiploop ) %]
466 <label for="relationship">Relationship: </label>
467 <select name="relationship" id="relationship" >
468 [% FOREACH relshiploo IN relshiploop %]
469 [% IF ( relshiploo.selected ) %]
470 <option value="[% relshiploo.relationship %]" selected="selected" >[% relshiploo.relationship %]</option>
472 <option value="[% relshiploo.relationship %]">[% relshiploo.relationship %]</option>
481 <span class="label"> </span>
482 [% IF ( guarantorid ) %]
483 <input id="guarantorsearch" type="button" value="Change" onclick="Dopopguarantor('guarantor_search.pl');" />
485 <input id="guarantorsearch" type="button" value="Set to patron" onclick="Dopopguarantor('guarantor_search.pl');" />
487 <input id="guarantordelete" type="button" value="Delete" />
489 [% IF guarantorid && Koha.Preference('AllowStaffToSetCheckoutsVisibilityForGuarantor') %]
491 <label for="privacy_guarantor_checkouts">Show checkouts to guarantor</label>
492 <select name="privacy_guarantor_checkouts" id="privacy_guarantor_checkouts">
493 [% IF privacy_guarantor_checkouts %]
494 <option value="0">No</option>
495 <option value="1" selected>Yes</option>
497 <option value="0" selected>No</option>
498 <option value="1">Yes</option>
501 <div class="hint">Allow guarantor of this patron to view this patron's checkouts from the OPAC</div>
508 [% UNLESS noaddress && noaddress2 && nocity && nostate && nozipcode && nocountry %]
509 [% IF Koha.Preference( 'AddressFormat' ) %]
510 [% INCLUDE "member-main-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
512 [% INCLUDE 'member-main-address-style-us.inc' %]
514 [% END # nostreet && nocity etc group%]
516 [% UNLESS nophone && nophonepro && nomobile && noemail && noemailpro && nofax %]
517 <fieldset class="rows" id="memberentry_contact">
518 <legend id="contact_lgd">Contact</legend><ol>
521 [% IF ( mandatoryphone ) %]
522 <label for="phone" class="required">
526 Primary phone: </label>
527 <input type="text" id="phone" name="phone" value="[% phone | html %]" />
528 [% IF ( mandatoryphone ) %]<span class="required">Required</span>[% END %]<div class="hint">Shows on transit slips</div>
532 [% UNLESS nophonepro %]
534 [% IF ( mandatoryphonepro ) %]
535 <label for="phonepro" class="required">
537 <label for="phonepro">
539 Secondary phone: </label>
540 <input type="text" id="phonepro" name="phonepro" value="[% phonepro | html %]" />
541 [% IF ( mandatoryphonepro ) %]<span class="required">Required</span>[% END %]
544 [% UNLESS nomobile %]
546 [% IF ( mandatorymobile ) %]
547 <label for="mobile" class="required">
551 Other phone: </label>
552 <input type="text" id="mobile" name="mobile" value="[% mobile | html %]" />
553 [% IF ( mandatorymobile ) %]<span class="required">Required</span>[% END %]
558 [% IF ( mandatoryemail ) %]
559 <label for="email" class="required">
563 Primary email: </label>
564 <input type="text" id="email" name="email" size="45" value="[% email | html %]" />
565 [% IF ( mandatoryemail ) %]<span class="required">Required</span>[% END %]<div class="hint">Shows on transit slips</div>
569 [% UNLESS noemailpro %]
571 [% IF ( mandatoryemailpro ) %]
572 <label for="emailpro" class="required">
574 <label for="emailpro">
576 Secondary email: </label>
577 <input type="text" id="emailpro" name="emailpro" size="45" value="[% emailpro | html %]" />
578 [% IF ( mandatoryemailpro ) %]<span class="required">Required</span>[% END %]
583 [% IF ( mandatoryfax ) %]
584 <label for="fax" class="required">
589 <input type="text" id="fax" name="fax" value="[% fax | html %]" />
590 [% IF ( mandatoryfax ) %]<span class="required">Required</span>[% END %]
595 [%END # hide fieldset %]
597 <!-- ************************ STEP_1 *********************** -->
601 [% UNLESS noB_address && noB_address2 && noB_city && noB_zipcode && noB_state && noB_country &&nocontactnote && noB_phone && noB_email %]
602 [% IF Koha.Preference( 'AddressFormat' ) %]
603 [% INCLUDE "member-alt-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
605 [% INCLUDE 'member-alt-address-style-us.inc' %]
607 [% END # UNLESS noB_address && noB_city && noB_state && noB_phone && noB_email %]
610 [% UNLESS noaltcontactsurname && noaltcontactfirstname && noaltcontactaddress1 && noaltcontactaddress2 && noaltcontactaddress3 && noaltcontactstate && noaltcontactzipcode && noaltcontactcountry && noaltcontactphone %]
611 [% IF Koha.Preference( 'AddressFormat' ) %]
612 [% INCLUDE "member-alt-contact-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
614 [% INCLUDE 'member-alt-contact-style-us.inc' %]
616 [% END # UNLESS noaltcontactsurname && noaltcontactfirstname etc %]
621 [% SET autoMemberNum = Koha.Preference('autoMemberNum') %]
622 <fieldset class="rows" id="memberentry_library_management">
623 <legend id="library_management_lgd">Library management</legend><ol>
624 [% UNLESS nocardnumber %]
626 [% IF mandatorycardnumber and not autoMemberNum %]
627 <label for="cardnumber" class="required">
629 <label for="cardnumber" class="validated">
631 [% IF autoMemberNum %]
632 Card number<br>(<u>leave blank for auto calc during registration</u>): </label>
634 Card number: </label>
636 [% IF minlength_cardnumber == maxlength_cardnumber %]
637 <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" minlength="[% minlength_cardnumber %]" maxlength="[% maxlength_cardnumber %]" />
638 [% IF mandatorycardnumber and not autoMemberNum %]<span class="required">Required</span>[% END %]
639 <div class="hint">Card number must be exactly [% minlength_cardnumber %] characters.</div>
640 [% ELSIF minlength_cardnumber && maxlength_cardnumber %]
641 <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" minlength="[% minlength_cardnumber %]" maxlength="[% maxlength_cardnumber %]" />
642 [% IF mandatorycardnumber and not autoMemberNum %]<span class="required">Required</span>[% END %]
643 <div class="hint">Card number must be between [% minlength_cardnumber %] and [% maxlength_cardnumber %] characters.</div>
644 [% ELSIF maxlength_cardnumber %]
645 <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" maxlength="[% maxlength_cardnumber %]" />
646 [% IF mandatorycardnumber and not autoMemberNum %]<span class="required">Required</span>[% END %]
647 <div class="hint">Card number can be up to [% maxlength_cardnumber %] characters.</div>
649 <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" />
650 [% IF mandatorycardnumber and not autoMemberNum %]<span class="required">Required</span>[% END %]
651 <div class="hint">There is no minimum or maximum character length.</div>
655 [% UNLESS nobranchcode %]
657 <label for="libraries" class="required">Library:</label>
658 <select name="branchcode" size="1" id="libraries">
659 [% PROCESS options_for_libraries libraries => Branches.all( selected => userbranch ) %]
661 <span class="required">Required</span>
665 <label for="categorycode_entry" class="required">Category: </label>
666 <select id="categorycode_entry" name="categorycode" onchange="update_category_code(this);">
667 [% FOREACH typeloo IN typeloop %]
668 [% FOREACH categoryloo IN typeloo.categoryloop %]
669 [% IF ( loop.first ) %]
670 [% IF ( typeloo.typename_C ) %]<optgroup label="Child">[% END %]
671 [% IF ( typeloo.typename_A ) %]<optgroup label="Adult">[% END %]
672 [% IF ( typeloo.typename_S ) %]<optgroup label="Staff">[% END %]
673 [% IF ( typeloo.typename_I ) %]<optgroup label="Organization">[% END %]
674 [% IF ( typeloo.typename_P ) %]<optgroup label="Professional">[% END %]
675 [% IF ( typeloo.typename_X ) %]<optgroup label="Statistical">[% END %]
677 [% IF ( categoryloo.categorycodeselected ) %]
678 <option value="[% categoryloo.categorycode %]" selected="selected" data-typename="[% typeloo.typename %]">[% categoryloo.categoryname %]</option>
680 <option value="[% categoryloo.categorycode %]" data-typename="[% typeloo.typename %]">[% categoryloo.categoryname %]</option>
682 [% IF ( loop.last ) %]
688 <span class="required">Required</span>
692 [% IF ( mandatorysort1 ) %]
693 <label for="sort1" class="required">
698 [% PROCESS 'av-build-dropbox.inc' name="sort1", category="Bsort1", default=sort1, size = 20 %]
699 [% IF ( mandatorysort1 ) %]<span class="required">Required</span>[% END %]
704 [% IF ( mandatorysort2 ) %]
705 <label for="sort2" class="required">
710 [% PROCESS 'av-build-dropbox.inc' name="sort2", category="Bsort2", default=sort2, size = 20 %]
711 [% IF ( mandatorysort2 ) %]<span class="required">Required</span>[% END %]
714 [% IF ( Koha.Preference( 'NorwegianPatronDBEnable' ) == 1 ) %]
716 <label for="sort2">Sync with the Norwegian national patron database:</label>
717 [% IF ( sync == 0 ) %]
718 <input type="radio" id="sync" name="sync" value="1"> Yes
719 <input type="radio" id="sync" name="sync" value="0" checked> No
721 <input type="radio" id="sync" name="sync" value="1" checked> Yes
722 <input type="radio" id="sync" name="sync" value="0"> No
726 [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %]
727 <li><label for="checkprevcheckout">Check for previous checkouts: </label>
728 <select name="checkprevcheckout" id="checkprevcheckout">
729 [% IF ( checkprevcheckout == 'yes' ) %]
730 <option value="yes" selected="selected">Yes if settings allow it</option>
731 <option value="no">No if settings allow it</option>
732 <option value="inherit">Inherit from settings</option>
733 [% ELSIF ( checkprevcheckout == 'no' ) %]
734 <option value="yes">Yes if settings allow it</option>
735 <option value="no" selected="selected">No if settings allow it</option>
736 <option value="inherit">Inherit from settings</option>
738 <option value="yes">Yes if settings allow it</option>
739 <option value="no">No if settings allow it</option>
740 <option value="inherit" selected="selected">Inherit from settings</option>
745 [% IF Koha.Preference('TranslateNotices') %]
747 <label for="lang">Preferred language for notices: </label>
748 <select id="lang" name="lang">
749 <option value="default">Default</option>
750 [% FOR language IN languages %]
751 [% FOR sublanguage IN language.sublanguages_loop %]
752 [% IF language.plural %]
753 [% IF sublanguage.rfc4646_subtag == lang %]
754 <option value="[% sublanguage.rfc4646_subtag %]" selected="selected">[% sublanguage.native_description %] [% sublanguage.region_description %] ([% sublanguage.rfc4646_subtag %])</option>
756 <option value="[% sublanguage.rfc4646_subtag %]">[% sublanguage.native_description %] [% sublanguage.region_description %] ([% sublanguage.rfc4646_subtag %])</option>
759 [% IF sublanguage.rfc4646_subtag == lang %]
760 <option value="[% sublanguage.rfc4646_subtag %]" selected="selected">[% sublanguage.native_description %] ([% sublanguage.rfc4646_subtag %])</option>
762 <option value="[% sublanguage.rfc4646_subtag %]">[% sublanguage.native_description %] ([% sublanguage.rfc4646_subtag %])</option>
772 [% UNLESS nodateenrolled && noopacnote && noborrowernotes %]
773 <fieldset class="rows" id="memberentry_subscription">
774 <legend id="library_setup_lgd">Library set-up</legend><ol>
775 [% UNLESS nodateenrolled %]
777 [% IF ( mandatorydateenrolled ) %]
778 <label for="from" class="required">
782 Registration date: </label>
783 [% IF ( dateformat == "metric" ) %]
784 <input type="text" id="from" name="dateenrolled" maxlength="10" size="10" onchange="CheckDate(document.form.dateenrolled);check_manip_date('verify');" value="[% dateenrolled %]" class="datepickerfrom" />
786 <input type="text" id="from" name="dateenrolled" maxlength="10" size="10" value="[% dateenrolled %]" class="datepickerfrom" />
788 [% IF ( mandatorydateenrolled ) %]<span class="required">Required</span>[% END %]
789 [% IF ( ERROR_dateenrolled ) %]<span class="required">(Error)</span>[% END %]
790 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
793 [% UNLESS nodateexpiry %]
796 <li style="display:none">
798 [% IF ( mandatorydateexpiry ) %]
799 <label for="to" class="required">
803 Expiry date (leave blank for auto calc): </label>
804 [% IF ( dateformat == "metric" ) %]
805 [% UNLESS ( opadd ) %]
806 <input type="text" id="to" name="dateexpiry" maxlength="10" size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" value="[% dateexpiry UNLESS opduplicate %]" class="datepickerto" />
808 <input type="text" id="to" name="dateexpiry" maxlength="10" size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" class="datepickerto" />
811 [% UNLESS ( opadd ) %]
812 <input type="text" id="to" name="dateexpiry" maxlength="10" size="10" value="[% dateexpiry UNLESS opduplicate %]" class="datepickerto" />
814 <input type="text" id="to" name="dateexpiry" maxlength="10" size="10" value="[% dateexpiry %]" class="datepickerto" />
817 [% IF ( mandatorydateexpiry ) %]<span class="required">Required</span>[% END %]
818 [% IF ( ERROR_dateexpiry ) %]<span class="required">(Error)</span>[% END %]
819 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
821 [% UNLESS noopacnote %]
823 [% IF ( mandatoryopacnote ) %]
824 <label for="opacnote" class="required">
826 <label for="opacnote">
829 <textarea id="opacnote" name="opacnote" cols="55" rows="5">[% opacnote | html UNLESS opduplicate %]</textarea>
830 <div class="hint">This message appears on this patron's user page in the OPAC</div>
831 [% IF ( mandatoryopacnote ) %]<span class="required">Required</span>[% END %]
834 [% UNLESS noborrowernotes %]
836 [% IF ( mandatoryborrowernotes ) %]
837 <label for="borrowernotes" class="required">
839 <label for="borrowernotes">
841 Circulation note: </label>
842 <textarea id="borrowernotes" name="borrowernotes" cols="55" rows="5">[% borrowernotes | html UNLESS opduplicate %]</textarea>
843 <div class="hint">This message displays when checking out to this patron</div>
844 [% IF ( mandatoryborrowernotes ) %]<span class="required">Required</span>[% END %]
849 [% END # hide fieldset %]
851 [% UNLESS nouserid && nopassword %]
852 <fieldset class="rows" id="memberentry_userid">
853 <legend id="opac_staff_login_lgd">OPAC/Staff login</legend><ol>
854 [% UNLESS nouserid %]
856 [% IF ( mandatoryuserid ) %]
857 <label for="userid" class="required">
863 [% IF ( NoUpdateLogin ) %]
864 [% IF ( opduplicate ) %]
865 <input type="text" id="userid" name="userid" size="20" disabled="disabled" />
867 <input type="text" id="userid" name="userid" size="20" disabled="disabled" value="[% userid %]" />
870 [% IF ( opduplicate ) %]
871 <input type="text" id="userid" name="userid" size="20" value="" />
873 <input type="text" id="userid" name="userid" size="20" value="[% userid %]" />
877 [%# Dummy input to avoid Firefox from using userid/password saved for authentication %]
878 <input type="text" disabled="disabled" style="display:none" />
880 [% IF ( mandatoryuserid ) %]<span class="required">Required</span>[% END %]
883 [% UNLESS nopassword %]
885 [% IF ( mandatorypassword ) %]
886 <label for="password" class="required">
888 <label for="password">
892 [% IF ( NoUpdateLogin ) %]
893 [% IF ( opduplicate ) %]
894 <input type="password" id="password" name="password" size="20" disabled="disabled" />
896 <input type="password" id="password" name="password" size="20" disabled="disabled" value="[% password %]" />
899 [% IF ( opduplicate ) %]
900 <input type="password" id="password" name="password" size="20" />
902 <input type="password" id="password" name="password" size="20" value="[% password %]" />
906 [% IF ( password ) %]
907 [% IF ( NoUpdateLogin ) %]
908 <input type="password" id="password" name="password" size="20" disabled="disabled" value="****" />
910 [% IF ( opduplicate ) %]
911 <input type="password" id="password" name="password" size="20" />
913 <input type="password" id="password" name="password" size="20" value="****" />
917 [% IF ( NoUpdateLogin ) %]
918 <input type="password" id="password" name="password" size="20" disabled="disabled" value="" />
920 <input type="password" id="password" name="password" size="20" value="" />
924 [% IF ( mandatorypassword ) %]<span class="required">Required</span>[% END %]
925 [% IF ( ERROR_password_too_short ) %]<span class="required">Password is too short</span>[% END %]
926 [% IF ( ERROR_password_too_weak ) %]<span class="required">Password is too weak</span>[% END %]
927 [% IF ( ERROR_password_has_whitespaces ) %]<span class="required">Password has leading or trailing whitespaces</span>[% END %]
928 <div class="hint">Minimum password length: [% minPasswordLength %]</div>
931 [% IF ( mandatorypassword ) %]
932 <label for="password2" class="required">
934 <label for="password2">
936 Confirm password: </label>
938 [% IF ( NoUpdateLogin ) %]
939 [% IF ( opduplicate ) %]
940 <input type="password" id="password2" name="password2" size="20" disabled="disabled" />
942 <input type="password" id="password2" name="password2" size="20" disabled="disabled" value="[% password %]" />
945 [% IF ( opduplicate ) %]
946 <input type="password" id="password2" name="password2" size="20" />
948 <input type="password" id="password2" name="password2" size="20" value="[% password %]" />
952 [% IF ( password ) %]
953 [% IF ( NoUpdateLogin ) %]
954 <input type="password" id="password2" name="password2" size="20" disabled="disabled" value="****" />
956 [% IF ( opduplicate ) %]
957 <input type="password" id="password2" name="password2" size="20" />
959 <input type="password" id="password2" name="password2" size="20" value="****" />
963 [% IF ( NoUpdateLogin ) %]
964 <input type="password" id="password2" name="password2" size="20" disabled="disabled" value="" />
966 <input type="password" id="password2" name="password2" size="20" value="" />
970 [% IF ( mandatorypassword ) %]<span class="required">Required</span>[% END %][% IF ( ERROR_password_mismatch ) %]<span class="required">Passwords do not match</span>[% END %]
974 [% END # hide fieldset %][% END %]
975 <!--this zones are not necessary in modif mode -->
976 [% UNLESS ( opadd || opduplicate ) %]
977 <fieldset class="rows" id="memberentry_account_flags">
978 <legend id="account_flags_lgd">Patron account flags</legend>
980 [% FOREACH flagloo IN flagloop %]
981 <li><label class="radio" for="yes[% flagloo.name %]">
982 [% IF ( flagloo.key == 'gonenoaddress' ) %]Gone no address:[% END %]
983 [% IF ( flagloo.key == 'lost' ) %]Lost card:[% END %]
985 [% IF CAN_user_circulate_manage_restrictions %]
986 <label for="yes[% flagloo.name %]">
987 [% IF ( flagloo.yes ) %]
988 <input type="radio" id="yes[% flagloo.name %]" name="[% flagloo.name %]" value="1" checked="checked" />
990 <input type="radio" id="yes[% flagloo.name %]" name="[% flagloo.name %]" value="1" />
993 <label for="no[% flagloo.name %]">
994 [% IF ( flagloo.no ) %]
995 <input type="radio" id="no[% flagloo.name %]" name="[% flagloo.name %]" value="0" checked="checked"/>
997 <input type="radio" id="no[% flagloo.name %]" name="[% flagloo.name %]" value="0" />
1001 [% IF flagloo.yes %]Yes[% ELSE %]No[% END %]
1010 <fieldset class="rows" id="memberentry_restrictions">
1011 <legend id="restrictions_lgd">Patron restrictions</legend>
1013 [% IF ( debarments ) %]
1020 [% IF CAN_user_borrowers && CAN_user_circulate_manage_restrictions %]
1027 [% FOREACH d IN debarments %]
1029 <td>[% d.type %]</td>
1031 [% IF d.comment.search('OVERDUES_PROCESS') %]
1032 Restriction added by overdues process [% d.comment.remove('OVERDUES_PROCESS ') %]
1037 <td>[% IF d.expiration %] [% d.expiration | $KohaDates %] [% ELSE %] <i>Indefinite</i> [% END %]</td>
1038 [% IF CAN_user_borrowers && CAN_user_circulate_manage_restrictions %]
1040 <input type="checkbox" id="debarment_[% d.borrower_debarment_id %]" name="remove_debarment" value="[% d.borrower_debarment_id %]" />
1048 <p>Patron is currently unrestricted.</p>
1051 [% IF CAN_user_borrowers && CAN_user_circulate_manage_restrictions %]
1052 <p><a href="#" id="add_manual_restriction">Add manual restriction</a></p>
1053 <fieldset id="manual_restriction_form">
1054 <input type="hidden" id="add_debarment" name="add_debarment" value="0" />
1055 <legend id="manual_restriction_lgd">Add manual restriction</legend>
1057 <li><label for="debarred_comment">Comment: </label><input type="text" id="debarred_comment" name="debarred_comment" onchange="$('#add_debarment').val(1);" /></li>
1058 <li><label for="debarred_expiration">Expiration: </label><input name="debarred_expiration" id="debarred_expiration" size="10" value="" class="datepicker" onchange="$('#add_debarment').val(1);" />
1059 <a href='javascript:void(0)' onclick="$('#debarred_expiration').val('');">Clear date</a></li>
1063 <a class="cancel" id="cancel_manual_restriction" href="#">Cancel</a>
1073 [% IF Koha.Preference('HouseboundModule') %]
1074 <fieldset class="rows" id="memberentry_housebound_roles">
1075 <legend id="housebound_roles">Housebound roles</legend>
1078 <label class="radio" for="housebound_chooser">
1081 [% IF ( housebound_role.housebound_chooser == 1 ) %]
1082 <label for="yes_housebound_chooser">Yes </label>
1083 <input type="radio" id="yes_housebound_chooser"
1084 name="housebound_chooser" value="1"
1085 checked="checked" />
1086 <label for="no_housebound_chooser">No </label>
1087 <input type="radio" id="no_housebound_chooser"
1088 name="housebound_chooser" value="0" />
1090 <label for="yes_housebound_chooser">Yes </label>
1091 <input type="radio" id="yes_housebound_chooser"
1092 name="housebound_chooser" value="1" />
1093 <label for="no_housebound_chooser">No </label>
1094 <input type="radio" id="no_housebound_chooser"
1095 name="housebound_chooser" value="0"
1096 checked="checked" />
1100 <label class="radio" for="housebound_deliverer">Deliverer:</label>
1101 [% IF ( housebound_role.housebound_deliverer == 1 ) %]
1102 <label for="yes_housebound_deliverer">Yes </label>
1103 <input type="radio" id="yes_housebound_deliverer"
1104 name="housebound_deliverer" value="1"
1105 checked="checked" />
1106 <label for="no_housebound_deliverer">No </label>
1107 <input type="radio" id="no_housebound_deliverer"
1108 name="housebound_deliverer" value="0" />
1110 <label for="yes_housebound_deliverer">Yes </label>
1111 <input type="radio" id="yes_housebound_deliverer"
1112 name="housebound_deliverer" value="1" />
1113 <label for="no_housebound_deliverer">No </label>
1114 <input type="radio" id="no_housebound_deliverer"
1115 name="housebound_deliverer" value="0"
1116 checked="checked" />
1121 [% END # hide fieldset %]
1122 [% IF ( ExtendedPatronAttributes ) %][% UNLESS ( no_patron_attribute_types ) %]
1123 <fieldset class="rows" id="memberentry_patron_attributes">
1124 <legend id="patron_attributes_lgd">Additional attributes and identifiers</legend>
1125 <input type="hidden" name="setting_extended_patron_attributes" value="1" />
1126 [% FOREACH pa_loo IN patron_attributes %]
1127 [% IF pa_loo.class %]
1128 <fieldset id="aai_[% pa_loo.class %]">
1129 <legend id="[% pa_loo.class %]_lgd">[% pa_loo.lib %]</legend>
1131 <ol class="attributes_table">
1132 [% FOREACH patron_attribute IN pa_loo.items %]
1133 <li data-category_code="[% patron_attribute.category_code %]">
1134 <label for="[% patron_attribute.form_id %]">[% patron_attribute.description %]: </label>
1135 [% IF ( patron_attribute.use_dropdown ) %]
1136 <select id="[% patron_attribute.form_id %]" name="[% patron_attribute.form_id %]">
1137 <option value=""></option>
1138 [% FOREACH auth_val_loo IN patron_attribute.auth_val_loop %]
1139 [% IF auth_val_loo.authorised_value == patron_attribute.value %]
1140 <option value="[% auth_val_loo.authorised_value %]" selected="selected">
1141 [% auth_val_loo.lib %]
1144 <option value="[% auth_val_loo.authorised_value %]" >
1145 [% auth_val_loo.lib %]
1151 <textarea rows="2" cols="30" id="[% patron_attribute.form_id %]" name="[% patron_attribute.form_id %]">[% patron_attribute.value %]</textarea>
1153 <input type="hidden" id="[% patron_attribute.form_id %]_code" name="[% patron_attribute.form_id %]_code" value="[% patron_attribute.code |html %]" />
1154 <a href="#" onclick="clear_entry(this); return false;"><i class="fa fa-fw fa-trash"></i> Clear</a>
1155 [% IF ( patron_attribute.repeatable ) %]
1156 <a href="#" onclick="clone_entry(this); return false;"><i class="fa fa-fw fa-plus"></i> New</a>
1161 [% IF pa_loo.class %]</fieldset>[% END %]
1164 [% END %][% END %][% END %]
1166 [% IF ( step_5 ) %][% IF ( EnhancedMessagingPreferences ) %]
1167 <fieldset class="rows" id="memberentry_messaging_prefs">
1168 <legend id="patron_messaging_prefs_lgd">Patron messaging preferences</legend>
1170 <!-- handle changing prefs if creating new patron and changing
1173 <script type="text/javascript">//<![CDATA[
1174 $(document).ready(function(){
1175 var message_prefs_dirty = false;
1176 $('#memberentry_messaging_prefs > *').change(function() {
1177 message_prefs_dirty = true;
1179 $('#categorycode_entry').change(function() {
1180 var categorycode = $(this).val();
1181 if (message_prefs_dirty) {
1182 if (!confirm(_("Change messaging preferences to default for this category?"))) {
1186 $.getJSON('/cgi-bin/koha/members/default_messageprefs.pl?categorycode=' + categorycode,
1188 $.each(data.messaging_preferences, function(i, item) {
1189 var attrid = item.message_attribute_id;
1190 var transports = ['email', 'rss', 'sms'];
1191 $.each(transports, function(j, transport) {
1192 if (item['transports_' + transport] == 1) {
1193 $('#' + transport + attrid).prop('checked', true);
1195 $('#' + transport + attrid).prop('checked', false);
1198 if (item.digest && item.digest != ' ') {
1199 $('#digest' + attrid).prop('checked', true);
1201 $('#digest' + attrid).prop('checked', false);
1203 if (item.takes_days == '1') {
1204 $('[name=' + attrid + '-DAYS]').val('' + item.days_in_advance);
1207 message_prefs_dirty = false;
1215 <input type="hidden" name="setting_messaging_prefs" value="1" />
1216 [% INCLUDE 'messaging-preference-form.inc' %]
1217 [% IF ( SMSSendDriver ) %]
1218 <p><label for="SMSnumber">SMS number:</label>
1219 <input type="text" id="SMSnumber" name="SMSnumber" value="[% SMSnumber %]" />
1222 <label for="sms_provider_id">SMS provider:</label>
1223 <select id="sms_provider_id" name="sms_provider_id"/>
1224 <option value="">Unknown</option>
1225 [% FOREACH s IN sms_providers %]
1226 [% IF s.id == sms_provider_id %]
1227 <option value="[% s.id %]" selected="selected">[% s.name %]</option>
1229 <option value="[% s.id %]">[% s.name %]</option>
1240 [% IF quickadd && opadd && !check_member %]
1241 <form id="quick_add_form" class="toggler">
1242 <fieldset class="rows quick_add"><legend>Quick add</legend>
1243 <ol id="quick_add_list">
1248 $(document).ready(function () {
1250 $("#entryform,#saverecord").hide();
1251 [% q_add_f = Koha.Preference('PatronQuickAddFields').split('\|') %]
1252 var qaddfields = [[% FOREACH field IN q_add_f.unique %]"[% field %]",[% END %]];
1253 var skipped_fields = ["contactname","contactfirstname","relationship"]; //Guarantor form is pulled as a whole, ignore individual fields
1254 $("#entryform label").each(function () {
1255 var input_label = $(this).attr('for');
1256 if ( input_label == 'sex-female' ) {
1259 else if ( input_label == 'btitle' ) {
1260 input_label='title';
1262 if ( skipped_fields.indexOf( input_label ) != -1 ) { input_label=""; }
1263 if( qaddfields.indexOf( input_label ) != -1 || $(this).attr('class') == 'required' ){
1264 $(this).parent().clone().appendTo("#quick_add_list");
1265 [% UNLESS mandatorypassword %]
1266 if( input_label == 'password' ) $("#entryform label[for='password2']").parent().clone().appendTo("#quick_add_list");
1270 if( $("#memberentry_guarantor").length ) {
1271 $("#memberentry_guarantor").clone().appendTo("#quick_add_list").css("margin",0);
1272 $("#quick_add_form #memberentry_guarantor").append("<p>" + _("Note: Quick add guarantor form populates address fields in full form") + "</p>");
1273 $("#quick_add_list #guarantordelete").prop('id','qagd');
1275 $("#qagd").click(function() { $("#guarantordelete").click(); });
1276 $("#quick_add_form").show();
1283 [% UNLESS ( opadd ) %]<div class="yui-b">
1284 [% INCLUDE 'members-menu.inc' %]
1288 [% INCLUDE 'intranet-bottom.inc' %]
1289 [% PROCESS 'password_check.inc' %]
1290 [% PROCESS 'add_password_check' new_password => 'password' %]