|
Lines 7-13
Link Here
|
| 7 |
|
7 |
|
| 8 |
<script type="text/javascript"> |
8 |
<script type="text/javascript"> |
| 9 |
$(document).ready(function() { |
9 |
$(document).ready(function() { |
| 10 |
$( "#borrower_dateofbirth" ).datepicker({ yearRange: "c-120:c" }); |
10 |
[% IF action == 'edit' && !OPACPatronDetails %] |
|
|
11 |
$("#memberentry-form :input").attr('readonly', true); |
| 12 |
$("#borrower_branchcode").attr('disabled',true); |
| 13 |
$("#borrower_title").attr('disabled',true); |
| 14 |
$('#memberentry-form :radio').attr('disabled',true); |
| 15 |
$('span.required').remove(); |
| 16 |
$('label.required').removeClass('required'); |
| 17 |
[% ELSE %] |
| 18 |
$( "#borrower_dateofbirth" ).datepicker({ yearRange: "c-120:c" }); |
| 19 |
[% END %] |
| 11 |
}); |
20 |
}); |
| 12 |
</script> |
21 |
</script> |
| 13 |
</head> |
22 |
</head> |
|
Lines 21-26
Link Here
|
| 21 |
<div class="yui-b"> |
30 |
<div class="yui-b"> |
| 22 |
<div class="yui-g"> |
31 |
<div class="yui-g"> |
| 23 |
<div id="useraccount" class="container"> |
32 |
<div id="useraccount" class="container"> |
|
|
33 |
[% UNLESS OPACPatronDetails %] |
| 34 |
<div>To make changes to your record please contact the library.</div> |
| 35 |
[% END %] |
| 24 |
|
36 |
|
| 25 |
[% IF empty_mandatory_fields %] |
37 |
[% IF empty_mandatory_fields %] |
| 26 |
<div class="dialog alert">You have not filled out all required fields. Please fill in all missing fields and resubmit.</div> |
38 |
<div class="dialog alert">You have not filled out all required fields. Please fill in all missing fields and resubmit.</div> |
|
Lines 30-36
Link Here
|
| 30 |
<div class="dialog alert">You typed in the wrong characters in the box before submitting. Please try again.</div> |
42 |
<div class="dialog alert">You typed in the wrong characters in the box before submitting. Please try again.</div> |
| 31 |
[% END %] |
43 |
[% END %] |
| 32 |
|
44 |
|
| 33 |
<form method="post"> |
45 |
<form method="post" id="memberentry-form"> |
| 34 |
|
46 |
|
| 35 |
[% UNLESS |
47 |
[% UNLESS |
| 36 |
hidden.defined('branchcode') |
48 |
hidden.defined('branchcode') |
|
Lines 132-140
Link Here
|
| 132 |
[% END %] |
144 |
[% END %] |
| 133 |
Date of birth:</label> |
145 |
Date of birth:</label> |
| 134 |
|
146 |
|
| 135 |
<input type="text" id="borrower_dateofbirth" name="borrower_dateofbirth" value="[% borrower.dateofbirth | $KohaDates %]" readonly="readonly" size="10" /> |
147 |
<input type="text" id="borrower_dateofbirth" name="borrower_dateofbirth" value="[% borrower.dateofbirth | $KohaDates %]" size="10" /> |
| 136 |
|
148 |
|
| 137 |
<a href="#" style="font-size:85%;text-decoration:none;" onclick="document.getElementById('borrower_dateofbirth').value='';return false;">Clear date</a><p></p> |
149 |
[% UNLESS action == 'edit' && !OPACPatronDetails %] |
|
|
150 |
<a href="#" style="font-size:85%;text-decoration:none;" onclick="document.getElementById('borrower_dateofbirth').value='';return false;">Clear date</a><p></p> |
| 151 |
[% END %] |
| 138 |
|
152 |
|
| 139 |
[% IF mandatory.defined('dateofbirth') %]<span class="required">Required</span>[% END %] |
153 |
[% IF mandatory.defined('dateofbirth') %]<span class="required">Required</span>[% END %] |
| 140 |
</li> |
154 |
</li> |
|
Lines 682-697
Link Here
|
| 682 |
[% END %] |
696 |
[% END %] |
| 683 |
|
697 |
|
| 684 |
[% UNLESS action == 'edit' %] |
698 |
[% UNLESS action == 'edit' %] |
| 685 |
<p>Please type this following characters into the box below : [% captcha %]</p> |
699 |
<fieldset class="rows" id="memberentry_captcha"> |
| 686 |
<p> |
700 |
<ol> |
| 687 |
<input type="text" name="captcha" id="captcha" /> |
701 |
<li> |
| 688 |
<input type="hidden" name="captcha_digest" value="[% captcha_digest %]" /> |
702 |
<label for="borrower_altcontactphone" class="required">Verification</label> |
| 689 |
</p> |
703 |
|
|
|
704 |
<input type="text" name="captcha" id="captcha" /> |
| 705 |
<input type="hidden" name="captcha_digest" value="[% captcha_digest %]" /> |
| 706 |
|
| 707 |
<span class="required">Please type this following characters into the preceding box: <strong>[% captcha %]</strong></span> |
| 708 |
</li> |
| 709 |
</ol> |
| 710 |
</fieldset> |
| 690 |
[% END %] |
711 |
[% END %] |
| 691 |
|
712 |
|
| 692 |
[% IF action == 'edit' %] |
713 |
[% IF action == 'edit' %] |
| 693 |
<input type="hidden" name="action" value="update" /> |
714 |
[% IF OPACPatronDetails %] |
| 694 |
<input type="submit" value="Submit Update Request" /> |
715 |
<input type="hidden" name="action" value="update" /> |
|
|
716 |
<input type="submit" value="Submit Update Request" /> |
| 717 |
[% END %] |
| 695 |
[% ELSE %] |
718 |
[% ELSE %] |
| 696 |
<input type="hidden" name="action" value="create" /> |
719 |
<input type="hidden" name="action" value="create" /> |
| 697 |
<input type="submit" value="Submit" /> |
720 |
<input type="submit" value="Submit" /> |