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 288-294
function validate1(date) {
Link Here
|
288 |
[% IF ( CAN_user_tools_batch_upload_patron_images ) %] |
288 |
[% IF ( CAN_user_tools_batch_upload_patron_images ) %] |
289 |
<form method="post" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data"> |
289 |
<form method="post" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data"> |
290 |
<fieldset class="brief"> |
290 |
<fieldset class="brief"> |
291 |
[% IF ( picture ) %] |
291 |
[% IF ( patron.image ) %] |
292 |
<legend>Manage patron image</legend> |
292 |
<legend>Manage patron image</legend> |
293 |
<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. |
293 |
<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. |
294 |
[% ELSE %] |
294 |
[% ELSE %] |
Lines 309-315
function validate1(date) {
Link Here
|
309 |
<input type="hidden" name="csrf_token" value="[% csrf_token %]" /> |
309 |
<input type="hidden" name="csrf_token" value="[% csrf_token %]" /> |
310 |
<input type="submit" value="Upload" class="submit" /> |
310 |
<input type="submit" value="Upload" class="submit" /> |
311 |
<input name="op" type="hidden" value="Upload" /> |
311 |
<input name="op" type="hidden" value="Upload" /> |
312 |
[% 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 %] |
312 |
[% 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 %] |
313 |
</fieldset> |
313 |
</fieldset> |
314 |
</fieldset> |
314 |
</fieldset> |
315 |
</form> |
315 |
</form> |
Lines 396-405
function validate1(date) {
Link Here
|
396 |
<div class="rows"> |
396 |
<div class="rows"> |
397 |
<ol> |
397 |
<ol> |
398 |
<li><span class="label">Card number: </span>[% patron.cardnumber %]</li> |
398 |
<li><span class="label">Card number: </span>[% patron.cardnumber %]</li> |
399 |
<li><span class="label">Borrowernumber: </span> [% patron.borrowernumber %]</li> |
399 |
<li><span class="label">Borrowernumber: </span> [% patron.borrowernumber %]</li> |
400 |
<li><span class="label">Category: </span>[% patron.category.description %] ([% patron.categorycode %])</li> |
400 |
<li><span class="label">Category: </span>[% patron.category.description %] ([% patron.categorycode %])</li> |
401 |
<li><span class="label">Registration date: </span>[% patron.dateenrolled | $KohaDates %]</li> |
401 |
<li><span class="label">Registration date: </span>[% patron.dateenrolled | $KohaDates %]</li> |
402 |
|
402 |
|
403 |
<li><span class="label">Expiration date: </span> |
403 |
<li><span class="label">Expiration date: </span> |
404 |
[% IF ( was_renewed ) %] |
404 |
[% IF ( was_renewed ) %] |
405 |
<strong class="reregistrinfo">[% patron.dateexpiry | $KohaDates %]</strong> |
405 |
<strong class="reregistrinfo">[% patron.dateexpiry | $KohaDates %]</strong> |
Lines 494-503
function validate1(date) {
Link Here
|
494 |
<li><span class="label">First name: </span>[% patron.altcontactfirstname | html %]</li> |
494 |
<li><span class="label">First name: </span>[% patron.altcontactfirstname | html %]</li> |
495 |
<li><span class="label">Address: </span>[% patron.altcontactaddress1 | html %]</li> |
495 |
<li><span class="label">Address: </span>[% patron.altcontactaddress1 | html %]</li> |
496 |
<li><span class="label">Address 2: </span>[% patron.altcontactaddress2 | html %]</li> |
496 |
<li><span class="label">Address 2: </span>[% patron.altcontactaddress2 | html %]</li> |
497 |
<li><span class="label">City: </span>[% patron.altcontactaddress3 | html %]</li> |
497 |
<li><span class="label">City: </span>[% patron.altcontactaddress3 | html %]</li> |
498 |
[% IF ( patron.altcontactstate ) %]<li><span class="label">State: </span>[% patron.altcontactstate | html %]</li>[% END %] |
498 |
[% IF ( patron.altcontactstate ) %]<li><span class="label">State: </span>[% patron.altcontactstate | html %]</li>[% END %] |
499 |
<li><span class="label">ZIP/Postal code: </span>[% patron.altcontactzipcode | html %]</li> |
499 |
<li><span class="label">ZIP/Postal code: </span>[% patron.altcontactzipcode | html %]</li> |
500 |
[% IF ( patron.altcontactcountry ) %]<li><span class="label">Country: </span>[% patron.altcontactcountry | html %]</li>[% END %] |
500 |
[% IF ( patron.altcontactcountry ) %]<li><span class="label">Country: </span>[% patron.altcontactcountry | html %]</li>[% END %] |
501 |
[% IF ( patron.altcontactphone ) %]<li><span class="label">Phone: </span><a href="tel:[% patron.altcontactphone | url %]">[% patron.altcontactphone | html %]</a></li>[% END %] |
501 |
[% IF ( patron.altcontactphone ) %]<li><span class="label">Phone: </span><a href="tel:[% patron.altcontactphone | url %]">[% patron.altcontactphone | html %]</a></li>[% END %] |
502 |
</ol></div> |
502 |
</ol></div> |
503 |
</div> |
503 |
</div> |