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 %]
65 Please correct the errors and resubmit.
69 [% IF failed_captcha %]
70 <div class="alert">You typed in the wrong characters in the box before submitting. Please try again.</div>
73 <form method="post" action="/cgi-bin/koha/opac-memberentry.pl" id="memberentry-form">
75 [% UNLESS hidden.defined('branchcode') %]
76 <fieldset class="rows" id="memberentry_library">
78 <legend id="library_legend">Library</legend>
80 [% UNLESS hidden.defined('cardnumber') %]
82 <label>Card number:</label>
83 [% borrower.cardnumber %]
87 [% UNLESS hidden.defined('dateexpiry') %]
89 <label>Expiration date:</label>
90 [% borrower.dateexpiry | $KohaDates %]
94 [% UNLESS hidden.defined('branchcode') %]
96 [% IF mandatory.defined('branchcode') %]
97 <label for="borrower_branchcode" class="required">
99 <label for="borrower_branchcode">
101 Home library:</label>
103 <select id="borrower_branchcode" name="borrower_branchcode">
104 [% FOREACH b IN branches %]
105 [% IF b.value == borrower.branchcode %]
106 <option value="[% b.value %]" selected="selected">[% b.branchname %]</option>
108 <option value="[% b.value %]">[% b.branchname %]</option>
116 [% END # / defined 'branchcode' %]
119 hidden.defined('title') && hidden.defined('surname') && hidden.defined('firstname') &&
120 hidden.defined('dateofbirth') && hidden.defined('initials') && hidden.defined('othernames') &&
121 hidden.defined('sex')
123 <div class="row-fluid">
124 [% IF ( display_patron_image ) %]
129 <fieldset class="rows" id="memberentry_identity">
130 <legend id="identity_legend">Identity</legend>
133 [% UNLESS hidden.defined('title') || !member_titles %]
135 [% IF mandatory.defined('title') %]
136 <label for="borrower_title" class="required">
138 <label for="borrower_title">
142 <select id="borrower_title" name="borrower_title">
143 [% FOREACH mt IN member_titles %]
144 [% IF mt == borrower.title %]
145 <option value="[% mt %]" selected="selected">[% mt %]</option>
147 <option value="[% mt %]">[% mt %]</option>
154 [% UNLESS hidden.defined('surname') %]
156 [% IF mandatory.defined('surname') %]
157 <label for="borrower_surname" class="required">
159 <label for="borrower_surname">
163 <input type="text" id="borrower_surname" name="borrower_surname" value="[% borrower.surname %]" />
164 [% IF mandatory.defined('surname') %]<span class="required">Required</span>[% END %]
168 [% UNLESS hidden.defined('firstname') %]
170 [% IF mandatory.defined('firstname') %]
171 <label for="borrower_firstname" class="required">
173 <label for="borrower_firstname">
177 <input type="text" id="borrower_firstname" name="borrower_firstname" value="[% borrower.firstname %]" />
178 [% IF mandatory.defined('firstname') %]<span class="required">Required</span>[% END %]
182 [% UNLESS hidden.defined('dateofbirth') %]
184 [% IF mandatory.defined('dateofbirth') %]
185 <label for="borrower_dateofbirth" class="required">
187 <label for="borrower_dateofbirth">
189 Date of birth:</label>
191 <input type="text" id="borrower_dateofbirth" name="borrower_dateofbirth" value="[% borrower.dateofbirth | $KohaDates %]" size="10" />
193 [% UNLESS action == 'edit' && !OPACPatronDetails %]
194 [% UNLESS ( mandatory.defined('dateofbirth') ) %]
195 <a href="#" style="font-size:85%;text-decoration:none;" onclick="document.getElementById('borrower_dateofbirth').value='';return false;">Clear date</a>
199 [% IF mandatory.defined('dateofbirth') %]<span class="required">Required</span>[% END %]
203 [% UNLESS hidden.defined('initials') %]
205 [% IF mandatory.defined('initials') %]
206 <label for="borrower_initials" class="required">
208 <label for="borrower_initials">
212 <input type="text" id="borrower_initials" name="borrower_initials" value="[% borrower.initials %]" />
213 [% IF mandatory.defined('initials') %]<span class="required">Required</span>[% END %]
217 [% UNLESS hidden.defined('othernames') %]
219 [% IF mandatory.defined('othernames') %]
220 <label for="borrower_othernames" class="required">
222 <label for="borrower_othernames">
226 <input type="text" id="borrower_othernames" name="borrower_othernames" value="[% borrower.othernames %]" />
227 [% IF mandatory.defined('othernames') %]<span class="required">Required</span>[% END %]
231 [% UNLESS hidden.defined('sex') %]
233 <label for="sex-female" class="radio inline">Female:</label>
234 [% IF borrower.sex == 'F' %]
235 <input type="radio" name="borrower_sex" id="sex-female" value="F" checked="checked" />
237 <input type="radio" name="borrower_sex" id="sex-female" value="F" />
240 <label for="sex-male" class="radio inline">Male:</label>
241 [% IF borrower.sex == 'M' %]
242 <input type="radio" name="borrower_sex" id="sex-male" value="M" checked="checked" />
244 <input type="radio" name="borrower_sex" id="sex-male" value="M" />
247 <label for="sex-none" class="radio inline">None specified: </label>
248 [% IF borrower.sex == '' %]
249 <input type="radio" name="borrower_sex" id="sex-none" value="" checked="checked" />
251 <input type="radio" name="borrower_sex" id="sex-none" value="" />
254 [% IF mandatory.defined('sex') %]<span class="required">Required</span>[% END %]
260 [% IF ( display_patron_image ) %]
262 <p class="patronimage">
263 <img src="/cgi-bin/koha/opac-patron-image.pl" alt="" />
268 [% END # /UNLESS fields hidden %]
271 hidden.defined('streetnumber') && hidden.defined('address') && hidden.defined('address2') &&
272 hidden.defined('city') && hidden.defined('state') && hidden.defined('zipcode') &&
273 hidden.defined('country')
275 <fieldset class="rows" id="memberentry_mainaddress">
276 <legend id="mainaddress_legend">Main address</legend>
279 [% UNLESS hidden.defined('streetnumber') %]
281 [% IF mandatory.defined('streetnumber') %]
282 <label for="borrower_streetnumber" class="required">
284 <label for="borrower_streetnumber">
286 Street number:</label>
288 <input type="text" id="borrower_streetnumber" name="borrower_streetnumber" value="[% borrower.streetnumber %]" />
289 [% IF mandatory.defined('streetnumber') %]<span class="required">Required</span>[% END %]
293 [% UNLESS hidden.defined('address') %]
295 [% IF mandatory.defined('address') %]
296 <label for="borrower_address" class="required">
298 <label for="borrower_address">
302 <input type="text" id="borrower_address" name="borrower_address" value="[% borrower.address %]" />
303 [% IF mandatory.defined('address') %]<span class="required">Required</span>[% END %]
307 [% UNLESS hidden.defined('address2') %]
309 [% IF mandatory.defined('address2') %]
310 <label for="borrower_address2" class="required">
312 <label for="borrower_address2">
316 <input type="text" id="borrower_address2" name="borrower_address2" value="[% borrower.address2 %]" />
317 [% IF mandatory.defined('address2') %]<span class="required">Required</span>[% END %]
321 [% UNLESS hidden.defined('city') %]
323 [% IF mandatory.defined('city') %]
324 <label for="borrower_city" class="required">
326 <label for="borrower_city">
330 <input type="text" id="borrower_city" name="borrower_city" value="[% borrower.city %]" />
331 [% IF mandatory.defined('city') %]<span class="required">Required</span>[% END %]
335 [% UNLESS hidden.defined('state') %]
337 [% IF mandatory.defined('state') %]
338 <label for="borrower_state" class="required">
340 <label for="borrower_state">
344 <input type="text" id="borrower_state" name="borrower_state" value="[% borrower.state %]" />
345 [% IF mandatory.defined('state') %]<span class="required">Required</span>[% END %]
349 [% UNLESS hidden.defined('zipcode') %]
351 [% IF mandatory.defined('zipcode') %]
352 <label for="borrower_zipcode" class="required">
354 <label for="borrower_zipcode">
356 Zip/Postal code:</label>
358 <input type="text" id="borrower_zipcode" name="borrower_zipcode" value="[% borrower.zipcode %]" />
359 [% IF mandatory.defined('zipcode') %]<span class="required">Required</span>[% END %]
363 [% UNLESS hidden.defined('country') %]
365 [% IF mandatory.defined('country') %]
366 <label for="borrower_country" class="required">
368 <label for="borrower_country">
372 <input type="text" id="borrower_country" name="borrower_country" value="[% borrower.country %]" />
373 [% IF mandatory.defined('country') %]<span class="required">Required</span>[% END %]
382 hidden.defined('phone') && hidden.defined('phonepro') && hidden.defined('mobile') &&
383 hidden.defined('email') && hidden.defined('emailpro') && hidden.defined('fax')
385 <fieldset class="rows" id="memberentry_contact">
386 <legend id="contact_legend">Contact information</legend>
389 [% UNLESS hidden.defined('phone') %]
391 [% IF mandatory.defined('phone') %]
392 <label for="borrower_phone" class="required">
394 <label for="borrower_phone">
396 Primary phone:</label>
398 <input type="text" id="borrower_phone" name="borrower_phone" value="[% borrower.phone %]" />
399 [% IF mandatory.defined('phone') %]<span class="required">Required</span>[% END %]
403 [% UNLESS hidden.defined('phonepro') %]
405 [% IF mandatory.defined('phonepro') %]
406 <label for="borrower_phonepro" class="required">
408 <label for="borrower_phonepro">
410 Secondary phone:</label>
412 <input type="text" id="borrower_phonepro" name="borrower_phonepro" value="[% borrower.phonepro %]" />
413 [% IF mandatory.defined('phonepro') %]<span class="required">Required</span>[% END %]
417 [% UNLESS hidden.defined('mobile') %]
419 [% IF mandatory.defined('mobile') %]
420 <label for="borrower_mobile" class="required">
422 <label for="borrower_mobile">
426 <input type="text" id="borrower_mobile" name="borrower_mobile" value="[% borrower.mobile %]" />
427 [% IF mandatory.defined('mobile') %]<span class="required">Required</span>[% END %]
431 [% UNLESS hidden.defined('email') %]
433 [% IF mandatory.defined('email') %]
434 <label for="borrower_email" class="required">
436 <label for="borrower_email">
438 Primary email:</label>
440 <input type="text" id="borrower_email" name="borrower_email" value="[% borrower.email %]" />
441 [% IF mandatory.defined('email') %]<span class="required">Required</span>[% END %]
445 [% UNLESS hidden.defined('emailpro') %]
447 [% IF mandatory.defined('emailpro') %]
448 <label for="borrower_emailpro" class="required">
450 <label for="borrower_emailpro">
452 Secondary email:</label>
454 <input type="text" id="borrower_emailpro" name="borrower_emailpro" value="[% borrower.emailpro %]" />
455 [% IF mandatory.defined('emailpro') %]<span class="required">Required</span>[% END %]
459 [% UNLESS hidden.defined('fax') %]
461 [% IF mandatory.defined('fax') %]
462 <label for="borrower_fax" class="required">
464 <label for="borrower_fax">
468 <input type="text" id="borrower_fax" name="borrower_fax" value="[% borrower.fax %]" />
469 [% IF mandatory.defined('fax') %]<span class="required">Required</span>[% END %]
477 hidden.defined('B_address') && hidden.defined('B_address2') && hidden.defined('B_city') &&
478 hidden.defined('B_state') && hidden.defined('B_zipcode') && hidden.defined('B_country') &&
479 hidden.defined('B_phone') && hidden.defined('B_email') && hidden.defined('contactnote')
481 <fieldset class="rows" id="memberentry_alternateaddress">
482 <legend id="alternateaddress_legend">Alternate address</legend>
485 [% UNLESS hidden.defined('B_address') %]
487 [% IF mandatory.defined('B_address') %]
488 <label for="borrower_B_address" class="required">
490 <label for="borrower_B_address">
494 <input type="text" id="borrower_B_address" name="borrower_B_address" value="[% borrower.B_address %]" />
495 [% IF mandatory.defined('B_address') %]<span class="required">Required</span>[% END %]
499 [% UNLESS hidden.defined('B_address2') %]
501 [% IF mandatory.defined('B_address2') %]
502 <label for="borrower_B_address2" class="required">
504 <label for="borrower_B_address2">
508 <input type="text" id="borrower_B_address2" name="borrower_B_address2" value="[% borrower.B_address2 %]" />
509 [% IF mandatory.defined('B_address2') %]<span class="required">Required</span>[% END %]
513 [% UNLESS hidden.defined('B_city') %]
515 [% IF mandatory.defined('B_city') %]
516 <label for="borrower_B_city" class="required">
518 <label for="borrower_B_city">
522 <input type="text" id="borrower_B_city" name="borrower_B_city" value="[% borrower.B_city %]" />
523 [% IF mandatory.defined('B_city') %]<span class="required">Required</span>[% END %]
527 [% UNLESS hidden.defined('B_state') %]
529 [% IF mandatory.defined('B_state') %]
530 <label for="borrower_B_state" class="required">
532 <label for="borrower_B_state">
536 <input type="text" id="borrower_B_state" name="borrower_B_state" value="[% borrower.B_state %]" />
537 [% IF mandatory.defined('B_state') %]<span class="required">Required</span>[% END %]
541 [% UNLESS hidden.defined('B_zipcode') %]
543 [% IF mandatory.defined('B_zipcode') %]
544 <label for="borrower_B_zipcode" class="required">
546 <label for="borrower_B_zipcode">
548 Zip/Postal code:</label>
550 <input type="text" id="borrower_B_zipcode" name="borrower_B_zipcode" value="[% borrower.B_zipcode %]" />
551 [% IF mandatory.defined('B_zipcode') %]<span class="required">Required</span>[% END %]
555 [% UNLESS hidden.defined('B_country') %]
557 [% IF mandatory.defined('B_country') %]
558 <label for="borrower_B_country" class="required">
560 <label for="borrower_B_country">
564 <input type="text" id="borrower_B_country" name="borrower_B_country" value="[% borrower.B_country %]" />
565 [% IF mandatory.defined('B_country') %]<span class="required">Required</span>[% END %]
569 [% UNLESS hidden.defined('B_phone') %]
571 [% IF mandatory.defined('B_phone') %]
572 <label for="borrower_B_phone" class="required">
574 <label for="borrower_B_phone">
578 <input type="text" id="borrower_B_phone" name="borrower_B_phone" value="[% borrower.B_phone %]" />
579 [% IF mandatory.defined('B_phone') %]<span class="required">Required</span>[% END %]
583 [% UNLESS hidden.defined('B_email') %]
585 [% IF mandatory.defined('B_email') %]
586 <label for="borrower_B_email" class="required">
588 <label for="borrower_B_email">
592 <input type="text" id="borrower_B_email" name="borrower_B_email" value="[% borrower.B_email %]" />
593 [% IF mandatory.defined('B_email') %]<span class="required">Required</span>[% END %]
597 [% UNLESS hidden.defined('contactnote') %]
599 [% IF mandatory.defined('contactnote') %]
600 <label for="borrower_contactnote" class="required">
602 <label for="borrower_contactnote">
604 Contact note:</label>
606 <textarea id="borrower_contactnote" name="borrower_contactnote" cols="30" rows="2">[% borrower.contactnote %]</textarea>
607 [% IF mandatory.defined('contactnote') %]<span class="required">Required</span>[% END %]
616 hidden.defined('altcontactsurname') && hidden.defined('altcontactfirstname') && hidden.defined('altcontactaddress1') &&
617 hidden.defined('altcontactaddress2') && hidden.defined('altcontactaddress3') && hidden.defined('altcontactstate') &&
618 hidden.defined('altcontactzipcode') && hidden.defined('altcontactcountry') && hidden.defined('altcontactphone')
620 <fieldset class="rows" id="memberentry_alternatecontact">
621 <legend id="alternatecontact_legend">Alternate contact</legend>
624 [% UNLESS hidden.defined('altcontactsurname') %]
626 [% IF mandatory.defined('altcontactsurname') %]
627 <label for="borrower_altcontactsurname" class="required">
629 <label for="borrower_altcontactsurname">
633 <input type="text" id="borrower_altcontactsurname" name="borrower_altcontactsurname" value="[% borrower.altcontactsurname %]" />
634 [% IF mandatory.defined('altcontactsurname') %]<span class="required">Required</span>[% END %]
638 [% UNLESS hidden.defined('altcontactfirstname') %]
640 [% IF mandatory.defined('altcontactfirstname') %]
641 <label for="borrower_altcontactfirstname" class="required">
643 <label for="borrower_altcontactfirstname">
647 <input type="text" id="borrower_altcontactfirstname" name="borrower_altcontactfirstname" value="[% borrower.altcontactfirstname %]" />
648 [% IF mandatory.defined('altcontactfirstname') %]<span class="required">Required</span>[% END %]
652 [% UNLESS hidden.defined('altcontactaddress1') %]
654 [% IF mandatory.defined('altcontactaddress1') %]
655 <label for="borrower_altcontactaddress1" class="required">
657 <label for="borrower_altcontactaddress1">
661 <input type="text" id="borrower_altcontactaddress1" name="borrower_altcontactaddress1" value="[% borrower.altcontactaddress1 %]" />
662 [% IF mandatory.defined('altcontactaddress1') %]<span class="required">Required</span>[% END %]
666 [% UNLESS hidden.defined('altcontactaddress2') %]
668 [% IF mandatory.defined('altcontactaddress2') %]
669 <label for="borrower_altcontactaddress2" class="required">
671 <label for="borrower_altcontactaddress2">
675 <input type="text" id="borrower_altcontactaddress2" name="borrower_altcontactaddress2" value="[% borrower.altcontactaddress2 %]" />
676 [% IF mandatory.defined('altcontactaddress2') %]<span class="required">Required</span>[% END %]
680 [% UNLESS hidden.defined('altcontactaddress3') %]
682 [% IF mandatory.defined('altcontactaddress3') %]
683 <label for="borrower_altcontactaddress3" class="required">
685 <label for="borrower_altcontactaddress3">
689 <input type="text" id="borrower_altcontactaddress3" name="borrower_altcontactaddress3" value="[% borrower.altcontactaddress3 %]" />
690 [% IF mandatory.defined('altcontactaddress3') %]<span class="required">Required</span>[% END %]
694 [% UNLESS hidden.defined('altcontactstate') %]
696 [% IF mandatory.defined('altcontactstate') %]
697 <label for="borrower_altcontactstate" class="required">
699 <label for="borrower_altcontactstate">
703 <input type="text" id="borrower_altcontactstate" name="borrower_altcontactstate" value="[% borrower.altcontactstate %]" />
704 [% IF mandatory.defined('altcontactstate') %]<span class="required">Required</span>[% END %]
708 [% UNLESS hidden.defined('altcontactzipcode') %]
710 [% IF mandatory.defined('altcontactzipcode') %]
711 <label for="borrower_altcontactzipcode" class="required">
713 <label for="borrower_altcontactzipcode">
715 Zip/Postal code:</label>
717 <input type="text" id="borrower_altcontactzipcode" name="borrower_altcontactzipcode" value="[% borrower.altcontactzipcode %]" />
718 [% IF mandatory.defined('altcontactzipcode') %]<span class="required">Required</span>[% END %]
722 [% UNLESS hidden.defined('altcontactcountry') %]
724 [% IF mandatory.defined('altcontactcountry') %]
725 <label for="borrower_altcontactcountry" class="required">
727 <label for="borrower_altcontactcountry">
731 <input type="text" id="borrower_altcontactcountry" name="borrower_altcontactcountry" value="[% borrower.altcontactcountry %]" />
732 [% IF mandatory.defined('altcontactcountry') %]<span class="required">Required</span>[% END %]
736 [% UNLESS hidden.defined('altcontactphone') %]
738 [% IF mandatory.defined('altcontactphone') %]
739 <label for="borrower_altcontactphone" class="required">
741 <label for="borrower_altcontactphone">
745 <input type="text" id="borrower_altcontactphone" name="borrower_altcontactphone" value="[% borrower.altcontactphone %]" />
746 [% IF mandatory.defined('altcontactphone') %]<span class="required">Required</span>[% END %]
753 [% UNLESS action == 'edit' %]
754 <fieldset class="rows" id="memberentry_captcha">
757 <label for="captcha" class="required">Verification:</label>
759 <input type="text" name="captcha" id="captcha" />
760 <input type="hidden" name="captcha_digest" value="[% captcha_digest %]" />
762 <span class="hint">Please type the following characters into the preceding box: <strong>[% captcha %]</strong></span>
763 <span class="hint">Note: The preceding box is case-sensitive. Ensure that the entered characters are in all-caps.</span>
769 [% IF ( borrower.ExtendedPatronAttributes ) %]
770 <fieldset class="rows">
771 <legend>Additional information</legend>
773 [% FOREACH patron_attribute IN borrower.patron_attributes %]
775 <label>[% patron_attribute.description %]:</label>
776 [% IF ( patron_attribute.value_description ) %]
777 [% patron_attribute.value_description %]
779 [% patron_attribute.value |html_line_break %]
787 [% IF action == 'edit' %]
788 [% IF OPACPatronDetails %]
789 <fieldset class="action">
790 <input type="hidden" name="action" value="update" />
791 <input type="submit" class="btn" value="Submit update request" />
795 <fieldset class="action">
796 <input type="hidden" name="action" value="create" />
797 <input type="submit" class="btn" value="Submit" />
803 </div><!--/div id="update-account" -->
809 [% INCLUDE 'opac-bottom.inc' %]
810 [% BLOCK jsinclude %]
811 <script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.validate.min.js"></script>
812 <script type="text/javascript">
814 $(document).ready(function() {
815 [% IF action == 'edit' && !OPACPatronDetails %]
816 $("#memberentry-form :input").attr('readonly', true);
817 $("#borrower_branchcode").attr('disabled',true);
818 $("#borrower_title").attr('disabled',true);
819 $('#memberentry-form :radio').attr('disabled',true);
820 $('span.required').remove();
821 $('label.required').removeClass('required');
823 $( "#borrower_dateofbirth" ).datepicker({ yearRange: "c-120:c" });
825 $("#memberentry-form").validate({
837 submitHandler: function(form) {
838 if (form.beenSubmitted) {
842 form.beenSubmitted = true;
846 errorPlacement: function(error, element) {
847 offset = element.offset();
848 error.insertAfter(element)
849 error.addClass('error'); // add a class to the wrapper
850 error.css('position', 'absolute');
851 error.css('left', offset.left + element.outerWidth() + 10);
852 error.css('top', offset.top);
853 error.css('width', 'auto');
859 [% INCLUDE 'calendar.inc' %]