1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Can't Delete Patron</title>
3 [% INCLUDE 'doc-head-close.inc' %]
5 <body id="pat_deletemem" class="pat">
6 [% INCLUDE 'header.inc' %]
7 [% INCLUDE 'patron-search.inc' %]
9 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> › Cannot delete patron</div>
10 <div id="doc3" class="yui-t2">
15 [% INCLUDE 'members-toolbar.inc' %]
16 [% IF ( ItemsOnIssues || charges || guarantees ) %]
17 <div class="dialog alert">
18 <h3>Cannot delete patron</h3>
20 [% IF ( ItemsOnIssues ) %]
21 <li>Patron has [% ItemsOnIssues %] item(s) checked out.</li>
24 <li>Patron has [% charges %] in fines.</li>
26 [% IF ( guarantees ) %]
27 <li>Patron's record has guaranteed accounts attached.</li>
31 [% ELSIF op == 'delete_confirm' and borrowernumber %]
32 [%# TODO add "patron does not exist" unless borrowernumber %]
33 <div class="dialog alert">
34 <h3>Are you sure you want to delete the patron [% firstname %] [% surname %]? This cannot be undone.</h3>
35 <form action="/cgi-bin/koha/members/deletemem.pl">
36 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]"/>
37 <input type="hidden" name="op" value="delete_confirmed" />
38 <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
40 <form action="/cgi-bin/koha/members/moremember.pl">
41 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]"/>
42 <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
46 [% IF ( keeplocal ) %]
47 <div class="dialog message">
48 <h3>Remote record deleted, local record kept</h3>
49 <p>Patron was marked for deletion from Norwegian national patron database, but the local record was kept.</p>
56 [% INCLUDE 'circ-menu.inc' %]
59 [% INCLUDE 'intranet-bottom.inc' %]