Lines 73-79
$(document).ready(function() {
Link Here
|
73 |
], |
73 |
], |
74 |
"bPaginate": false |
74 |
"bPaginate": false |
75 |
})); |
75 |
})); |
76 |
[% IF ( picture ) %] |
76 |
[% IF ( patron.image ) %] |
77 |
// new YAHOO.widget.Button("delpicture"); // FIXME: formatting mismatch between YUI and normal button |
77 |
// new YAHOO.widget.Button("delpicture"); // FIXME: formatting mismatch between YUI and normal button |
78 |
$('#delpicture').click(function(){ |
78 |
$('#delpicture').click(function(){ |
79 |
return confirm(_("Are you sure you want to delete this patron image? This cannot be undone.")); |
79 |
return confirm(_("Are you sure you want to delete this patron image? This cannot be undone.")); |
Lines 282-288
function validate1(date) {
Link Here
|
282 |
[% IF ( CAN_user_tools_batch_upload_patron_images ) %] |
282 |
[% IF ( CAN_user_tools_batch_upload_patron_images ) %] |
283 |
<form method="post" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data"> |
283 |
<form method="post" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data"> |
284 |
<fieldset class="brief"> |
284 |
<fieldset class="brief"> |
285 |
[% IF ( picture ) %] |
285 |
[% IF ( patron.image ) %] |
286 |
<legend>Manage patron image</legend> |
286 |
<legend>Manage patron image</legend> |
287 |
<div class="hint">To update the image for [% patron.title | html %] [% patron.surname | html %], select a new image file and click 'Upload.' <br />Click the 'Delete' button to remove the current image. |
287 |
<div class="hint">To update the image for [% patron.title | html %] [% patron.surname | html %], select a new image file and click 'Upload.' <br />Click the 'Delete' button to remove the current image. |
288 |
[% ELSE %] |
288 |
[% ELSE %] |
Lines 303-309
function validate1(date) {
Link Here
|
303 |
<input type="hidden" name="csrf_token" value="[% csrf_token %]" /> |
303 |
<input type="hidden" name="csrf_token" value="[% csrf_token %]" /> |
304 |
<input type="submit" value="Upload" class="submit" /> |
304 |
<input type="submit" value="Upload" class="submit" /> |
305 |
<input name="op" type="hidden" value="Upload" /> |
305 |
<input name="op" type="hidden" value="Upload" /> |
306 |
[% IF ( picture ) %]<a id="delpicture" href="/cgi-bin/koha/tools/picture-upload.pl?op=Delete&borrowernumber=[% patron.borrowernumber %]&csrf_token=[% csrf_token %]" class="delete">Delete</a>[% END %] |
306 |
[% IF ( patron.image ) %]<a id="delpicture" href="/cgi-bin/koha/tools/picture-upload.pl?op=Delete&borrowernumber=[% patron.borrowernumber %]&csrf_token=[% csrf_token %]" class="delete">Delete</a>[% END %] |
307 |
</fieldset> |
307 |
</fieldset> |
308 |
</fieldset> |
308 |
</fieldset> |
309 |
</form> |
309 |
</form> |
Lines 393-399
function validate1(date) {
Link Here
|
393 |
<li><span class="label">Borrowernumber: </span> [% patron.borrowernumber %]</li> |
393 |
<li><span class="label">Borrowernumber: </span> [% patron.borrowernumber %]</li> |
394 |
<li><span class="label">Category: </span>[% patron.category.description %] ([% patron.categorycode %])</li> |
394 |
<li><span class="label">Category: </span>[% patron.category.description %] ([% patron.categorycode %])</li> |
395 |
<li><span class="label">Registration date: </span>[% patron.dateenrolled | $KohaDates %]</li> |
395 |
<li><span class="label">Registration date: </span>[% patron.dateenrolled | $KohaDates %]</li> |
396 |
|
396 |
|
397 |
<li><span class="label">Expiration date: </span> |
397 |
<li><span class="label">Expiration date: </span> |
398 |
[% IF ( was_renewed ) %] |
398 |
[% IF ( was_renewed ) %] |
399 |
<strong class="reregistrinfo">[% patron.dateexpiry | $KohaDates %]</strong> |
399 |
<strong class="reregistrinfo">[% patron.dateexpiry | $KohaDates %]</strong> |
Lines 486-495
function validate1(date) {
Link Here
|
486 |
<li><span class="label">First name: </span>[% patron.altcontactfirstname | html %]</li> |
486 |
<li><span class="label">First name: </span>[% patron.altcontactfirstname | html %]</li> |
487 |
<li><span class="label">Address: </span>[% patron.altcontactaddress1 | html %]</li> |
487 |
<li><span class="label">Address: </span>[% patron.altcontactaddress1 | html %]</li> |
488 |
<li><span class="label">Address 2: </span>[% patron.altcontactaddress2 | html %]</li> |
488 |
<li><span class="label">Address 2: </span>[% patron.altcontactaddress2 | html %]</li> |
489 |
<li><span class="label">City: </span>[% patron.altcontactaddress3 | html %]</li> |
489 |
<li><span class="label">City: </span>[% patron.altcontactaddress3 | html %]</li> |
490 |
[% IF ( patron.altcontactstate ) %]<li><span class="label">State: </span>[% patron.altcontactstate | html %]</li>[% END %] |
490 |
[% IF ( patron.altcontactstate ) %]<li><span class="label">State: </span>[% patron.altcontactstate | html %]</li>[% END %] |
491 |
<li><span class="label">ZIP/Postal code: </span>[% patron.altcontactzipcode | html %]</li> |
491 |
<li><span class="label">ZIP/Postal code: </span>[% patron.altcontactzipcode | html %]</li> |
492 |
[% IF ( patron.altcontactcountry ) %]<li><span class="label">Country: </span>[% patron.altcontactcountry | html %]</li>[% END %] |
492 |
[% IF ( patron.altcontactcountry ) %]<li><span class="label">Country: </span>[% patron.altcontactcountry | html %]</li>[% END %] |
493 |
[% IF ( patron.altcontactphone ) %]<li><span class="label">Phone: </span><a href="tel:[% patron.altcontactphone | url %]">[% patron.altcontactphone | html %]</a></li>[% END %] |
493 |
[% IF ( patron.altcontactphone ) %]<li><span class="label">Phone: </span><a href="tel:[% patron.altcontactphone | url %]">[% patron.altcontactphone | html %]</a></li>[% END %] |
494 |
</ol></div> |
494 |
</ol></div> |
495 |
</div> |
495 |
</div> |