Lines 269-277
Link Here
|
269 |
[% END %] |
269 |
[% END %] |
270 |
<form method="post" id="picture-upload" style="display:none;" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data"> |
270 |
<form method="post" id="picture-upload" style="display:none;" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data"> |
271 |
[% IF ( patron.image ) %] |
271 |
[% IF ( patron.image ) %] |
272 |
<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.</div> |
272 |
<div class="hint">To update the image for [% patron.title %] [% patron.firstname | html %] [% patron.surname | html %], select a new image file and click 'Upload.' <br />Click the 'Delete' button to remove the current image.</div> |
273 |
[% ELSE %] |
273 |
[% ELSE %] |
274 |
<div class="hint">[% patron.title | html %] [% patron.firstname | html %] [% patron.surname | html %] does not currently have an image available. To import an image for [% patron.title | html %] [% patron.surname | html %], enter the name of an image file to upload.</div> |
274 |
<div class="hint">[% patron.title | html %] [% patron.firstname | html %] [% patron.surname | html %] does not currently have an image available. To import an image for [% patron.title | html %] [% patron.firstname | html %] [% patron.surname | html %], enter the name of an image file to upload.</div> |
275 |
[% END %] |
275 |
[% END %] |
276 |
<p>Only PNG, GIF, JPEG, XPM formats are supported.</p> |
276 |
<p>Only PNG, GIF, JPEG, XPM formats are supported.</p> |
277 |
<label for="uploadfile">Select the file to upload: </label> |
277 |
<label for="uploadfile">Select the file to upload: </label> |
Lines 857-874
Link Here
|
857 |
], |
857 |
], |
858 |
"bPaginate": false |
858 |
"bPaginate": false |
859 |
})); |
859 |
})); |
860 |
[% IF ( patron.image ) %] |
|
|
861 |
$('#delpicture').click(function(){ |
862 |
return confirm(_("Are you sure you want to delete this patron image? This cannot be undone.")); |
863 |
}); |
864 |
$('#manage-patron-image').find("input[value*=Upload]").click(function(){ |
865 |
if($("#uploadfile").val() == ""){ |
866 |
alert(_("Please choose a file to upload")); |
867 |
return false; |
868 |
} |
869 |
return confirm(_("Are you sure you want to replace the current patron image? This cannot be undone.")); |
870 |
}); |
871 |
[% END %] |
872 |
|
860 |
|
873 |
$("#suspend_until").datepicker({ |
861 |
$("#suspend_until").datepicker({ |
874 |
onClose: function(dateText, inst) { |
862 |
onClose: function(dateText, inst) { |
875 |
- |
|
|