3 [% SET userupdateview = 1 %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › [% IF action == 'edit' %]Update your personal details[% ELSE %]Register a new account[% END %]</title>
7 [% INCLUDE 'doc-head-close.inc' %]
8 [% BLOCK cssinclude %][% END %]
11 [% IF action == 'edit' %]
12 [% INCLUDE 'bodytag.inc' bodyid='opac-patron-update' %]
14 <body id="opac-patron-registration" class="opac">
16 [% INCLUDE 'masthead.inc' %]
19 <ul class="breadcrumb">
20 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
21 [% IF action == 'edit' %]
22 <li><a href="/cgi-bin/koha/opac-user.pl">[% borrower.firstname %] [% borrower.surname %]</a> <span class="divider">›</span></li>
23 <li><a href="#">Your personal details</a></li>
25 <li><a href="#">Register a new account</a></li>
29 <div class="container-fluid">
30 <div class="row-fluid">
33 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
37 [% IF action == 'edit' %]
38 <div id="update-account">
40 <div id="add-account">
43 [% IF action == 'edit' %]
44 [% UNLESS OPACPatronDetails %]
45 <div class="alert alert-info">To make changes to your record please contact the library.</div>
48 <div class="alert alert-error">No changes were made.</div>
52 [% IF empty_mandatory_fields %]
53 <div class="alert">You have not filled out all required fields. Please fill in all missing fields and resubmit.</div>
56 [% IF invalid_form_fields %]
57 <div class="alert alert-error"><strong>The following fields contain invalid information:</strong>
59 [% FOREACH field IN invalid_form_fields %]
60 [% IF field == "email" %]<li>Contact information: <a href="#borrower_email">primary email address</a></li>[% END %]
61 [% IF field == "emailpro" %]<li>Contact information: <a href="#borrower_emailpro">secondary email address</a></li>[% END %]
62 [% IF field == "B_email" %]<li>Alternate address information: <a href="#borrower_B_email">email address</a></li>[% END %]
63 [% IF field == "password_match" %]<li>Passwords do not match! <a href="#password">password</a></li>[% END %]
64 [% IF field == "password_invalid" %]<li>Password does not meet minium requirements! <a href="#password">password</a></li>[% END %]
67 Please correct the errors and resubmit.
71 [% IF failed_captcha %]
72 <div class="alert">You typed in the wrong characters in the box before submitting. Please try again.</div>
75 [% IF borrower.guarantorid && !Koha.Preference('OPACPrivacy') && Koha.Preference('AllowPatronToSetCheckoutsVisibilityForGuarantor') %]
76 <fieldset class="rows" id="memberentry_privacy">
77 <legend id="privacy_legend">Privacy</legend>
80 <label>Allow your guarantor to view your current checkouts?</label>
81 <select id="privacy_guarantor_checkouts">
82 <option value="0">No</option>
83 [% IF borrower.privacy_guarantor_checkouts %]
84 <option value="1" selected="selected">Yes</option>
86 <option value="1">Yes</option>
90 <a id="update_privacy_guarantor_checkouts" href="#" class="btn">Update</a>
91 <span id="update_privacy_guarantor_checkouts_message" class="alert" style="display:none"></span>
94 Your guarantor is <i>[% guarantor.firstname %] [% guarantor.surname %]</i>
101 <form method="post" action="/cgi-bin/koha/opac-memberentry.pl" id="memberentry-form">
103 [% UNLESS hidden.defined('branchcode') %]
104 <fieldset class="rows" id="memberentry_library">
106 <legend id="library_legend">Library</legend>
108 [% UNLESS hidden.defined('cardnumber') %]
110 <label>Card number:</label>
111 [% borrower.cardnumber %]
115 [% UNLESS hidden.defined('dateexpiry') %]
117 <label>Expiration date:</label>
118 [% borrower.dateexpiry | $KohaDates %]
122 [% UNLESS hidden.defined('branchcode') %]
124 [% IF mandatory.defined('branchcode') %]
125 <label for="borrower_branchcode" class="required">
127 <label for="borrower_branchcode">
129 Home library:</label>
131 <select id="borrower_branchcode" name="borrower_branchcode">
132 [% FOREACH b IN branches %]
133 [% IF b.value == borrower.branchcode %]
134 <option value="[% b.value %]" selected="selected">[% b.branchname %]</option>
136 <option value="[% b.value %]">[% b.branchname %]</option>
144 [% END # / defined 'branchcode' %]
147 hidden.defined('title') && hidden.defined('surname') && hidden.defined('firstname') &&
148 hidden.defined('dateofbirth') && hidden.defined('initials') && hidden.defined('othernames') &&
149 hidden.defined('sex')
151 <div class="row-fluid">
152 [% IF ( display_patron_image ) %]
157 <fieldset class="rows" id="memberentry_identity">
158 <legend id="identity_legend">Identity</legend>
161 [% UNLESS hidden.defined('title') || !member_titles %]
163 [% IF mandatory.defined('title') %]
164 <label for="borrower_title" class="required">
166 <label for="borrower_title">
170 <select id="borrower_title" name="borrower_title">
171 [% FOREACH mt IN member_titles %]
172 [% IF mt == borrower.title %]
173 <option value="[% mt %]" selected="selected">[% mt %]</option>
175 <option value="[% mt %]">[% mt %]</option>
182 [% UNLESS hidden.defined('surname') %]
184 [% IF mandatory.defined('surname') %]
185 <label for="borrower_surname" class="required">
187 <label for="borrower_surname">
191 <input type="text" id="borrower_surname" name="borrower_surname" value="[% borrower.surname %]" />
192 [% IF mandatory.defined('surname') %]<span class="required">Required</span>[% END %]
196 [% UNLESS hidden.defined('firstname') %]
198 [% IF mandatory.defined('firstname') %]
199 <label for="borrower_firstname" class="required">
201 <label for="borrower_firstname">
205 <input type="text" id="borrower_firstname" name="borrower_firstname" value="[% borrower.firstname %]" />
206 [% IF mandatory.defined('firstname') %]<span class="required">Required</span>[% END %]
210 [% UNLESS hidden.defined('dateofbirth') %]
212 [% IF mandatory.defined('dateofbirth') %]
213 <label for="borrower_dateofbirth" class="required">
215 <label for="borrower_dateofbirth">
217 Date of birth:</label>
219 <input type="text" id="borrower_dateofbirth" name="borrower_dateofbirth" value="[% borrower.dateofbirth | $KohaDates %]" size="10" />
221 [% UNLESS action == 'edit' && !OPACPatronDetails %]
222 [% UNLESS ( mandatory.defined('dateofbirth') ) %]
223 <a href="#" style="font-size:85%;text-decoration:none;" onclick="document.getElementById('borrower_dateofbirth').value='';return false;">Clear date</a>
227 [% IF mandatory.defined('dateofbirth') %]<span class="required">Required</span>[% END %]
231 [% UNLESS hidden.defined('initials') %]
233 [% IF mandatory.defined('initials') %]
234 <label for="borrower_initials" class="required">
236 <label for="borrower_initials">
240 <input type="text" id="borrower_initials" name="borrower_initials" value="[% borrower.initials %]" />
241 [% IF mandatory.defined('initials') %]<span class="required">Required</span>[% END %]
245 [% UNLESS hidden.defined('othernames') %]
247 [% IF mandatory.defined('othernames') %]
248 <label for="borrower_othernames" class="required">
250 <label for="borrower_othernames">
254 <input type="text" id="borrower_othernames" name="borrower_othernames" value="[% borrower.othernames %]" />
255 [% IF mandatory.defined('othernames') %]<span class="required">Required</span>[% END %]
259 [% UNLESS hidden.defined('sex') %]
261 <label for="sex-female" class="radio inline">Female:</label>
262 [% IF borrower.sex == 'F' %]
263 <input type="radio" name="borrower_sex" id="sex-female" value="F" checked="checked" />
265 <input type="radio" name="borrower_sex" id="sex-female" value="F" />
268 <label for="sex-male" class="radio inline">Male:</label>
269 [% IF borrower.sex == 'M' %]
270 <input type="radio" name="borrower_sex" id="sex-male" value="M" checked="checked" />
272 <input type="radio" name="borrower_sex" id="sex-male" value="M" />
275 <label for="sex-none" class="radio inline">None specified: </label>
276 [% IF borrower.sex == '' %]
277 <input type="radio" name="borrower_sex" id="sex-none" value="" checked="checked" />
279 <input type="radio" name="borrower_sex" id="sex-none" value="" />
282 [% IF mandatory.defined('sex') %]<span class="required">Required</span>[% END %]
288 [% IF ( display_patron_image ) %]
290 <p class="patronimage">
291 <img src="/cgi-bin/koha/opac-patron-image.pl" alt="" />
296 [% END # /UNLESS fields hidden %]
299 hidden.defined('streetnumber') && hidden.defined('address') && hidden.defined('address2') &&
300 hidden.defined('city') && hidden.defined('state') && hidden.defined('zipcode') &&
301 hidden.defined('country')
303 <fieldset class="rows" id="memberentry_mainaddress">
304 <legend id="mainaddress_legend">Main address</legend>
307 [% UNLESS hidden.defined('streetnumber') %]
309 [% IF mandatory.defined('streetnumber') %]
310 <label for="borrower_streetnumber" class="required">
312 <label for="borrower_streetnumber">
314 Street number:</label>
316 <input type="text" id="borrower_streetnumber" name="borrower_streetnumber" value="[% borrower.streetnumber %]" />
317 [% IF mandatory.defined('streetnumber') %]<span class="required">Required</span>[% END %]
321 [% UNLESS hidden.defined('address') %]
323 [% IF mandatory.defined('address') %]
324 <label for="borrower_address" class="required">
326 <label for="borrower_address">
330 <input type="text" id="borrower_address" name="borrower_address" value="[% borrower.address %]" />
331 [% IF mandatory.defined('address') %]<span class="required">Required</span>[% END %]
335 [% UNLESS hidden.defined('address2') %]
337 [% IF mandatory.defined('address2') %]
338 <label for="borrower_address2" class="required">
340 <label for="borrower_address2">
344 <input type="text" id="borrower_address2" name="borrower_address2" value="[% borrower.address2 %]" />
345 [% IF mandatory.defined('address2') %]<span class="required">Required</span>[% END %]
349 [% UNLESS hidden.defined('city') %]
351 [% IF mandatory.defined('city') %]
352 <label for="borrower_city" class="required">
354 <label for="borrower_city">
358 <input type="text" id="borrower_city" name="borrower_city" value="[% borrower.city %]" />
359 [% IF mandatory.defined('city') %]<span class="required">Required</span>[% END %]
363 [% UNLESS hidden.defined('state') %]
365 [% IF mandatory.defined('state') %]
366 <label for="borrower_state" class="required">
368 <label for="borrower_state">
372 <input type="text" id="borrower_state" name="borrower_state" value="[% borrower.state %]" />
373 [% IF mandatory.defined('state') %]<span class="required">Required</span>[% END %]
377 [% UNLESS hidden.defined('zipcode') %]
379 [% IF mandatory.defined('zipcode') %]
380 <label for="borrower_zipcode" class="required">
382 <label for="borrower_zipcode">
384 ZIP/Postal code:</label>
386 <input type="text" id="borrower_zipcode" name="borrower_zipcode" value="[% borrower.zipcode %]" />
387 [% IF mandatory.defined('zipcode') %]<span class="required">Required</span>[% END %]
391 [% UNLESS hidden.defined('country') %]
393 [% IF mandatory.defined('country') %]
394 <label for="borrower_country" class="required">
396 <label for="borrower_country">
400 <input type="text" id="borrower_country" name="borrower_country" value="[% borrower.country %]" />
401 [% IF mandatory.defined('country') %]<span class="required">Required</span>[% END %]
410 hidden.defined('phone') && hidden.defined('phonepro') && hidden.defined('mobile') &&
411 hidden.defined('email') && hidden.defined('emailpro') && hidden.defined('fax')
413 <fieldset class="rows" id="memberentry_contact">
414 <legend id="contact_legend">Contact information</legend>
417 [% UNLESS hidden.defined('phone') %]
419 [% IF mandatory.defined('phone') %]
420 <label for="borrower_phone" class="required">
422 <label for="borrower_phone">
424 Primary phone:</label>
426 <input type="text" id="borrower_phone" name="borrower_phone" value="[% borrower.phone %]" />
427 [% IF mandatory.defined('phone') %]<span class="required">Required</span>[% END %]
431 [% UNLESS hidden.defined('phonepro') %]
433 [% IF mandatory.defined('phonepro') %]
434 <label for="borrower_phonepro" class="required">
436 <label for="borrower_phonepro">
438 Secondary phone:</label>
440 <input type="text" id="borrower_phonepro" name="borrower_phonepro" value="[% borrower.phonepro %]" />
441 [% IF mandatory.defined('phonepro') %]<span class="required">Required</span>[% END %]
445 [% UNLESS hidden.defined('mobile') %]
447 [% IF mandatory.defined('mobile') %]
448 <label for="borrower_mobile" class="required">
450 <label for="borrower_mobile">
454 <input type="text" id="borrower_mobile" name="borrower_mobile" value="[% borrower.mobile %]" />
455 [% IF mandatory.defined('mobile') %]<span class="required">Required</span>[% END %]
459 [% UNLESS hidden.defined('email') %]
461 [% IF mandatory.defined('email') %]
462 <label for="borrower_email" class="required">
464 <label for="borrower_email">
466 Primary email:</label>
468 <input type="text" id="borrower_email" name="borrower_email" value="[% borrower.email %]" />
469 [% IF mandatory.defined('email') %]<span class="required">Required</span>[% END %]
473 [% UNLESS hidden.defined('emailpro') %]
475 [% IF mandatory.defined('emailpro') %]
476 <label for="borrower_emailpro" class="required">
478 <label for="borrower_emailpro">
480 Secondary email:</label>
482 <input type="text" id="borrower_emailpro" name="borrower_emailpro" value="[% borrower.emailpro %]" />
483 [% IF mandatory.defined('emailpro') %]<span class="required">Required</span>[% END %]
487 [% UNLESS hidden.defined('fax') %]
489 [% IF mandatory.defined('fax') %]
490 <label for="borrower_fax" class="required">
492 <label for="borrower_fax">
496 <input type="text" id="borrower_fax" name="borrower_fax" value="[% borrower.fax %]" />
497 [% IF mandatory.defined('fax') %]<span class="required">Required</span>[% END %]
505 hidden.defined('B_address') && hidden.defined('B_address2') && hidden.defined('B_city') &&
506 hidden.defined('B_state') && hidden.defined('B_zipcode') && hidden.defined('B_country') &&
507 hidden.defined('B_phone') && hidden.defined('B_email') && hidden.defined('contactnote')
509 <fieldset class="rows" id="memberentry_alternateaddress">
510 <legend id="alternateaddress_legend">Alternate address</legend>
513 [% UNLESS hidden.defined('B_address') %]
515 [% IF mandatory.defined('B_address') %]
516 <label for="borrower_B_address" class="required">
518 <label for="borrower_B_address">
522 <input type="text" id="borrower_B_address" name="borrower_B_address" value="[% borrower.B_address %]" />
523 [% IF mandatory.defined('B_address') %]<span class="required">Required</span>[% END %]
527 [% UNLESS hidden.defined('B_address2') %]
529 [% IF mandatory.defined('B_address2') %]
530 <label for="borrower_B_address2" class="required">
532 <label for="borrower_B_address2">
536 <input type="text" id="borrower_B_address2" name="borrower_B_address2" value="[% borrower.B_address2 %]" />
537 [% IF mandatory.defined('B_address2') %]<span class="required">Required</span>[% END %]
541 [% UNLESS hidden.defined('B_city') %]
543 [% IF mandatory.defined('B_city') %]
544 <label for="borrower_B_city" class="required">
546 <label for="borrower_B_city">
550 <input type="text" id="borrower_B_city" name="borrower_B_city" value="[% borrower.B_city %]" />
551 [% IF mandatory.defined('B_city') %]<span class="required">Required</span>[% END %]
555 [% UNLESS hidden.defined('B_state') %]
557 [% IF mandatory.defined('B_state') %]
558 <label for="borrower_B_state" class="required">
560 <label for="borrower_B_state">
564 <input type="text" id="borrower_B_state" name="borrower_B_state" value="[% borrower.B_state %]" />
565 [% IF mandatory.defined('B_state') %]<span class="required">Required</span>[% END %]
569 [% UNLESS hidden.defined('B_zipcode') %]
571 [% IF mandatory.defined('B_zipcode') %]
572 <label for="borrower_B_zipcode" class="required">
574 <label for="borrower_B_zipcode">
576 ZIP/Postal code:</label>
578 <input type="text" id="borrower_B_zipcode" name="borrower_B_zipcode" value="[% borrower.B_zipcode %]" />
579 [% IF mandatory.defined('B_zipcode') %]<span class="required">Required</span>[% END %]
583 [% UNLESS hidden.defined('B_country') %]
585 [% IF mandatory.defined('B_country') %]
586 <label for="borrower_B_country" class="required">
588 <label for="borrower_B_country">
592 <input type="text" id="borrower_B_country" name="borrower_B_country" value="[% borrower.B_country %]" />
593 [% IF mandatory.defined('B_country') %]<span class="required">Required</span>[% END %]
597 [% UNLESS hidden.defined('B_phone') %]
599 [% IF mandatory.defined('B_phone') %]
600 <label for="borrower_B_phone" class="required">
602 <label for="borrower_B_phone">
606 <input type="text" id="borrower_B_phone" name="borrower_B_phone" value="[% borrower.B_phone %]" />
607 [% IF mandatory.defined('B_phone') %]<span class="required">Required</span>[% END %]
611 [% UNLESS hidden.defined('B_email') %]
613 [% IF mandatory.defined('B_email') %]
614 <label for="borrower_B_email" class="required">
616 <label for="borrower_B_email">
620 <input type="text" id="borrower_B_email" name="borrower_B_email" value="[% borrower.B_email %]" />
621 [% IF mandatory.defined('B_email') %]<span class="required">Required</span>[% END %]
625 [% UNLESS hidden.defined('contactnote') %]
627 [% IF mandatory.defined('contactnote') %]
628 <label for="borrower_contactnote" class="required">
630 <label for="borrower_contactnote">
632 Contact note:</label>
634 <textarea id="borrower_contactnote" name="borrower_contactnote" cols="30" rows="2">[% borrower.contactnote %]</textarea>
635 [% IF mandatory.defined('contactnote') %]<span class="required">Required</span>[% END %]
644 hidden.defined('altcontactsurname') && hidden.defined('altcontactfirstname') && hidden.defined('altcontactaddress1') &&
645 hidden.defined('altcontactaddress2') && hidden.defined('altcontactaddress3') && hidden.defined('altcontactstate') &&
646 hidden.defined('altcontactzipcode') && hidden.defined('altcontactcountry') && hidden.defined('altcontactphone')
648 <fieldset class="rows" id="memberentry_alternatecontact">
649 <legend id="alternatecontact_legend">Alternate contact</legend>
652 [% UNLESS hidden.defined('altcontactsurname') %]
654 [% IF mandatory.defined('altcontactsurname') %]
655 <label for="borrower_altcontactsurname" class="required">
657 <label for="borrower_altcontactsurname">
661 <input type="text" id="borrower_altcontactsurname" name="borrower_altcontactsurname" value="[% borrower.altcontactsurname %]" />
662 [% IF mandatory.defined('altcontactsurname') %]<span class="required">Required</span>[% END %]
666 [% UNLESS hidden.defined('altcontactfirstname') %]
668 [% IF mandatory.defined('altcontactfirstname') %]
669 <label for="borrower_altcontactfirstname" class="required">
671 <label for="borrower_altcontactfirstname">
675 <input type="text" id="borrower_altcontactfirstname" name="borrower_altcontactfirstname" value="[% borrower.altcontactfirstname %]" />
676 [% IF mandatory.defined('altcontactfirstname') %]<span class="required">Required</span>[% END %]
680 [% UNLESS hidden.defined('altcontactaddress1') %]
682 [% IF mandatory.defined('altcontactaddress1') %]
683 <label for="borrower_altcontactaddress1" class="required">
685 <label for="borrower_altcontactaddress1">
689 <input type="text" id="borrower_altcontactaddress1" name="borrower_altcontactaddress1" value="[% borrower.altcontactaddress1 %]" />
690 [% IF mandatory.defined('altcontactaddress1') %]<span class="required">Required</span>[% END %]
694 [% UNLESS hidden.defined('altcontactaddress2') %]
696 [% IF mandatory.defined('altcontactaddress2') %]
697 <label for="borrower_altcontactaddress2" class="required">
699 <label for="borrower_altcontactaddress2">
703 <input type="text" id="borrower_altcontactaddress2" name="borrower_altcontactaddress2" value="[% borrower.altcontactaddress2 %]" />
704 [% IF mandatory.defined('altcontactaddress2') %]<span class="required">Required</span>[% END %]
708 [% UNLESS hidden.defined('altcontactaddress3') %]
710 [% IF mandatory.defined('altcontactaddress3') %]
711 <label for="borrower_altcontactaddress3" class="required">
713 <label for="borrower_altcontactaddress3">
717 <input type="text" id="borrower_altcontactaddress3" name="borrower_altcontactaddress3" value="[% borrower.altcontactaddress3 %]" />
718 [% IF mandatory.defined('altcontactaddress3') %]<span class="required">Required</span>[% END %]
722 [% UNLESS hidden.defined('altcontactstate') %]
724 [% IF mandatory.defined('altcontactstate') %]
725 <label for="borrower_altcontactstate" class="required">
727 <label for="borrower_altcontactstate">
731 <input type="text" id="borrower_altcontactstate" name="borrower_altcontactstate" value="[% borrower.altcontactstate %]" />
732 [% IF mandatory.defined('altcontactstate') %]<span class="required">Required</span>[% END %]
736 [% UNLESS hidden.defined('altcontactzipcode') %]
738 [% IF mandatory.defined('altcontactzipcode') %]
739 <label for="borrower_altcontactzipcode" class="required">
741 <label for="borrower_altcontactzipcode">
743 ZIP/Postal code:</label>
745 <input type="text" id="borrower_altcontactzipcode" name="borrower_altcontactzipcode" value="[% borrower.altcontactzipcode %]" />
746 [% IF mandatory.defined('altcontactzipcode') %]<span class="required">Required</span>[% END %]
750 [% UNLESS hidden.defined('altcontactcountry') %]
752 [% IF mandatory.defined('altcontactcountry') %]
753 <label for="borrower_altcontactcountry" class="required">
755 <label for="borrower_altcontactcountry">
759 <input type="text" id="borrower_altcontactcountry" name="borrower_altcontactcountry" value="[% borrower.altcontactcountry %]" />
760 [% IF mandatory.defined('altcontactcountry') %]<span class="required">Required</span>[% END %]
764 [% UNLESS hidden.defined('altcontactphone') %]
766 [% IF mandatory.defined('altcontactphone') %]
767 <label for="borrower_altcontactphone" class="required">
769 <label for="borrower_altcontactphone">
773 <input type="text" id="borrower_altcontactphone" name="borrower_altcontactphone" value="[% borrower.altcontactphone %]" />
774 [% IF mandatory.defined('altcontactphone') %]<span class="required">Required</span>[% END %]
781 [% UNLESS action == 'edit' %]
782 <fieldset class="rows" id="memberentry_password">
783 <legend id="contact_legend">Contact information</legend>
784 [% UNLESS hidden.defined('password') %]
785 <div class="alert alert-info">Your password must be at least [% minpassw %] characters long.
786 [% IF mandatory.defined('password') %]
787 <br>You must enter a password!</div>
789 <li><label for="borrower_password" class="required">Password</label>
790 <input type="text" name="borrower_password" id="password" />
792 <li><label for="borrower_password2" class="required">Confirm password</label>
793 <input type="text" name="borrower_password2" id="password2" />
797 <br>If you do not enter a password a system generated password will be created</div>
799 <li><label for="borrower_password">Password</label>
800 <input type="text" name="borrower_password" id="password" />
802 <li><label for="borrower_password2">Confirm password</label>
803 <input type="text" name="borrower_password2" id="password2" />
810 <fieldset class="rows" id="memberentry_captcha">
814 <label for="captcha" class="required">Verification:</label>
816 <input type="text" name="captcha" id="captcha" />
817 <input type="hidden" name="captcha_digest" value="[% captcha_digest %]" />
819 <span class="hint">Please type the following characters into the preceding box: <strong>[% captcha %]</strong></span>
820 <span class="hint">Note: The preceding box is case-sensitive. Ensure that the entered characters are in all-caps.</span>
826 [% IF ( borrower.ExtendedPatronAttributes ) %]
827 <fieldset class="rows">
828 <legend>Additional information</legend>
830 [% FOREACH patron_attribute IN borrower.patron_attributes %]
832 <label>[% patron_attribute.description %]:</label>
833 [% IF ( patron_attribute.value_description ) %]
834 [% patron_attribute.value_description %]
836 [% patron_attribute.value |html_line_break %]
844 [% IF action == 'edit' %]
845 [% IF OPACPatronDetails %]
846 <fieldset class="action">
847 <input type="hidden" name="action" value="update" />
848 <input type="submit" class="btn" value="Submit update request" />
852 <fieldset class="action">
853 <input type="hidden" name="action" value="create" />
854 <input type="submit" class="btn" value="Submit" />
860 </div><!--/div id="update-account" -->
866 [% INCLUDE 'opac-bottom.inc' %]
867 [% BLOCK jsinclude %]
868 <script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.validate.min.js"></script>
869 <script type="text/javascript">
871 $(document).ready(function() {
872 [% IF action == 'edit' && !OPACPatronDetails %]
873 $("#memberentry-form :input").attr('readonly', true);
874 $("#borrower_branchcode").attr('disabled',true);
875 $("#borrower_title").attr('disabled',true);
876 $('#memberentry-form :radio').attr('disabled',true);
877 $('span.required').remove();
878 $('label.required').removeClass('required');
880 $( "#borrower_dateofbirth" ).datepicker({ yearRange: "c-120:c" });
883 $("#memberentry-form").validate({
895 submitHandler: function(form) {
896 if (form.beenSubmitted) {
900 form.beenSubmitted = true;
904 errorPlacement: function(error, element) {
905 offset = element.offset();
906 error.insertAfter(element)
907 error.addClass('error'); // add a class to the wrapper
908 error.css('position', 'absolute');
909 error.css('left', offset.left + element.outerWidth() + 10);
910 error.css('top', offset.top);
911 error.css('width', 'auto');
915 [% IF borrower.guarantorid && !Koha.Preference('OPACPrivacy') && Koha.Preference('AllowPatronToSetCheckoutsVisibilityForGuarantor') %]
916 $('#update_privacy_guarantor_checkouts').click( function() {
917 $.post( "/cgi-bin/koha/svc/patron/show_checkouts_to_relatives", { privacy_guarantor_checkouts: $('#privacy_guarantor_checkouts').val() }, null, 'json')
918 .done(function( data ) {
920 if ( data.success ) {
921 message = _("Your setting has been updated!");
923 message = _("Unable to update your setting!");
926 $('#update_privacy_guarantor_checkouts_message').fadeIn("slow").text( message ).delay( 5000 ).fadeOut("slow");
933 [% INCLUDE 'calendar.inc' %]