|
Lines 186-192
Link Here
|
| 186 |
[% IF ( CAN_user_tools_batch_upload_patron_images ) %] |
186 |
[% IF ( CAN_user_tools_batch_upload_patron_images ) %] |
| 187 |
<form method="post" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data"> |
187 |
<form method="post" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data"> |
| 188 |
<fieldset class="brief"> |
188 |
<fieldset class="brief"> |
| 189 |
[% IF ( picture ) %] |
189 |
[% IF ( patron.image ) %] |
| 190 |
<legend>Manage patron image</legend> |
190 |
<legend>Manage patron image</legend> |
| 191 |
<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. |
191 |
<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. |
| 192 |
[% ELSE %] |
192 |
[% ELSE %] |
|
Lines 207-213
Link Here
|
| 207 |
<input type="hidden" name="csrf_token" value="[% csrf_token %]" /> |
207 |
<input type="hidden" name="csrf_token" value="[% csrf_token %]" /> |
| 208 |
<input type="submit" value="Upload" class="submit" /> |
208 |
<input type="submit" value="Upload" class="submit" /> |
| 209 |
<input name="op" type="hidden" value="Upload" /> |
209 |
<input name="op" type="hidden" value="Upload" /> |
| 210 |
[% 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 %] |
210 |
[% 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 %] |
| 211 |
</fieldset> |
211 |
</fieldset> |
| 212 |
</fieldset> |
212 |
</fieldset> |
| 213 |
</form> |
213 |
</form> |
|
Lines 297-303
Link Here
|
| 297 |
<li><span class="label">Borrowernumber: </span> [% patron.borrowernumber %]</li> |
297 |
<li><span class="label">Borrowernumber: </span> [% patron.borrowernumber %]</li> |
| 298 |
<li><span class="label">Category: </span>[% patron.category.description %] ([% patron.categorycode %])</li> |
298 |
<li><span class="label">Category: </span>[% patron.category.description %] ([% patron.categorycode %])</li> |
| 299 |
<li><span class="label">Registration date: </span>[% patron.dateenrolled | $KohaDates %]</li> |
299 |
<li><span class="label">Registration date: </span>[% patron.dateenrolled | $KohaDates %]</li> |
| 300 |
|
300 |
|
| 301 |
<li><span class="label">Expiration date: </span> |
301 |
<li><span class="label">Expiration date: </span> |
| 302 |
[% IF ( was_renewed ) %] |
302 |
[% IF ( was_renewed ) %] |
| 303 |
<strong class="reregistrinfo">[% patron.dateexpiry | $KohaDates %]</strong> |
303 |
<strong class="reregistrinfo">[% patron.dateexpiry | $KohaDates %]</strong> |
|
Lines 390-399
Link Here
|
| 390 |
<li><span class="label">First name: </span>[% patron.altcontactfirstname | html %]</li> |
390 |
<li><span class="label">First name: </span>[% patron.altcontactfirstname | html %]</li> |
| 391 |
<li><span class="label">Address: </span>[% patron.altcontactaddress1 | html %]</li> |
391 |
<li><span class="label">Address: </span>[% patron.altcontactaddress1 | html %]</li> |
| 392 |
<li><span class="label">Address 2: </span>[% patron.altcontactaddress2 | html %]</li> |
392 |
<li><span class="label">Address 2: </span>[% patron.altcontactaddress2 | html %]</li> |
| 393 |
<li><span class="label">City: </span>[% patron.altcontactaddress3 | html %]</li> |
393 |
<li><span class="label">City: </span>[% patron.altcontactaddress3 | html %]</li> |
| 394 |
[% IF ( patron.altcontactstate ) %]<li><span class="label">State: </span>[% patron.altcontactstate | html %]</li>[% END %] |
394 |
[% IF ( patron.altcontactstate ) %]<li><span class="label">State: </span>[% patron.altcontactstate | html %]</li>[% END %] |
| 395 |
<li><span class="label">ZIP/Postal code: </span>[% patron.altcontactzipcode | html %]</li> |
395 |
<li><span class="label">ZIP/Postal code: </span>[% patron.altcontactzipcode | html %]</li> |
| 396 |
[% IF ( patron.altcontactcountry ) %]<li><span class="label">Country: </span>[% patron.altcontactcountry | html %]</li>[% END %] |
396 |
[% IF ( patron.altcontactcountry ) %]<li><span class="label">Country: </span>[% patron.altcontactcountry | html %]</li>[% END %] |
| 397 |
[% IF ( patron.altcontactphone ) %]<li><span class="label">Phone: </span><a href="tel:[% patron.altcontactphone | url %]">[% patron.altcontactphone | html %]</a></li>[% END %] |
397 |
[% IF ( patron.altcontactphone ) %]<li><span class="label">Phone: </span><a href="tel:[% patron.altcontactphone | url %]">[% patron.altcontactphone | html %]</a></li>[% END %] |
| 398 |
</ol></div> |
398 |
</ol></div> |
| 399 |
</div> |
399 |
</div> |
|
Lines 606-612
Link Here
|
| 606 |
], |
606 |
], |
| 607 |
"bPaginate": false |
607 |
"bPaginate": false |
| 608 |
})); |
608 |
})); |
| 609 |
[% IF ( picture ) %] |
609 |
[% IF ( patron.image ) %] |
| 610 |
$('#delpicture').click(function(){ |
610 |
$('#delpicture').click(function(){ |
| 611 |
return confirm(_("Are you sure you want to delete this patron image? This cannot be undone.")); |
611 |
return confirm(_("Are you sure you want to delete this patron image? This cannot be undone.")); |
| 612 |
}); |
612 |
}); |