|
Lines 37-50
Link Here
|
| 37 |
[% ELSIF op == 'delete_confirm' and patron %] |
37 |
[% ELSIF op == 'delete_confirm' and patron %] |
| 38 |
[%# TODO add "patron does not exist" unless patron %] |
38 |
[%# TODO add "patron does not exist" unless patron %] |
| 39 |
<div class="dialog alert"> |
39 |
<div class="dialog alert"> |
| 40 |
[% IF ( ItemsOnHold ) %] |
40 |
[% IF ItemsOnHold or credits %] |
| 41 |
<h3>Patron has [% ItemsOnHold | html %] hold(s). Deleting patron cancels all their holds.</h3></br> |
41 |
<ul> |
|
|
42 |
[% IF ItemsOnHold %] |
| 43 |
<li>Patron has [% ItemsOnHold | html %] hold(s). Deleting patron cancels all their holds.</li> |
| 44 |
[% END %] |
| 45 |
[% IF credits %] |
| 46 |
<li>Patron has a [% credits | $Price %] credit.</li> |
| 47 |
[% END %] |
| 48 |
<ul> |
| 42 |
[% END %] |
49 |
[% END %] |
| 43 |
<h3>Are you sure you want to delete the patron [% patron.firstname | html %] [% patron.surname | html %]? This cannot be undone.</h3> |
50 |
<h3>Are you sure you want to delete the patron [% patron.firstname | html %] [% patron.surname | html %]? This cannot be undone.</h3> |
| 44 |
|
51 |
|
| 45 |
[% IF credits %] |
|
|
| 46 |
<h4>Patron has a [% credits | $Price %] credit.</h4> |
| 47 |
[% END %] |
| 48 |
<form action="/cgi-bin/koha/members/deletemem.pl"> |
52 |
<form action="/cgi-bin/koha/members/deletemem.pl"> |
| 49 |
<input type="hidden" name="csrf_token" value="[% csrf_token | html %]" /> |
53 |
<input type="hidden" name="csrf_token" value="[% csrf_token | html %]" /> |
| 50 |
<input type="hidden" name="member" value="[% patron.borrowernumber | html %]"/> |
54 |
<input type="hidden" name="member" value="[% patron.borrowernumber | html %]"/> |
| 51 |
- |
|
|