Bug 24008: Display warnings in a list

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Jonathan Druart 2019-12-10 12:27:08 +01:00 committed by Martin Renvoize
parent e6e039c7c7
commit 3b3179a214
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F

View file

@ -37,14 +37,18 @@
[% ELSIF op == 'delete_confirm' and patron %]
[%# TODO add "patron does not exist" unless patron %]
<div class="dialog alert">
[% IF ( ItemsOnHold ) %]
<h3>Patron has [% ItemsOnHold | html %] hold(s). Deleting patron cancels all their holds.</h3></br>
[% IF ItemsOnHold or credits %]
<ul>
[% IF ItemsOnHold %]
<li>Patron has [% ItemsOnHold | html %] hold(s). Deleting patron cancels all their holds.</li>
[% END %]
[% IF credits %]
<li>Patron has a [% credits | $Price %] credit.</li>
[% END %]
<ul>
[% END %]
<h3>Are you sure you want to delete the patron [% patron.firstname | html %] [% patron.surname | html %]? This cannot be undone.</h3>
[% IF credits %]
<h4>Patron has a [% credits | $Price %] credit.</h4>
[% END %]
<form action="/cgi-bin/koha/members/deletemem.pl">
<input type="hidden" name="csrf_token" value="[% csrf_token | html %]" />
<input type="hidden" name="member" value="[% patron.borrowernumber | html %]"/>