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 OPACPatronDetails %] |
|
|
11 |
$( "#borrower_dateofbirth" ).datepicker({ yearRange: "c-120:c" }); |
12 |
[% ELSE %] |
13 |
$("#memberentry-form :input").attr('readonly', true); |
14 |
$("#borrower_branchcode").attr('disabled',true); |
15 |
$("#borrower_title").attr('disabled',true); |
16 |
$('#memberentry-form :radio').attr('disabled',true); |
17 |
$('span.required').remove(); |
18 |
$('label.required').removeClass('required'); |
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 134-140
Link Here
|
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 %]" readonly="readonly" 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 |
[% IF 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 690-697
Link Here
|
690 |
[% END %] |
704 |
[% END %] |
691 |
|
705 |
|
692 |
[% IF action == 'edit' %] |
706 |
[% IF action == 'edit' %] |
693 |
<input type="hidden" name="action" value="update" /> |
707 |
[% IF OPACPatronDetails %] |
694 |
<input type="submit" value="Submit Update Request" /> |
708 |
<input type="hidden" name="action" value="update" /> |
|
|
709 |
<input type="submit" value="Submit Update Request" /> |
710 |
[% END %] |
695 |
[% ELSE %] |
711 |
[% ELSE %] |
696 |
<input type="hidden" name="action" value="create" /> |
712 |
<input type="hidden" name="action" value="create" /> |
697 |
<input type="submit" value="Submit" /> |
713 |
<input type="submit" value="Submit" /> |