2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Delete patron [% patron.firstname %] [% patron.surname %]</title>
4 [% INCLUDE 'doc-head-close.inc' %]
6 <body id="pat_deletemem" class="pat">
7 [% INCLUDE 'header.inc' %]
8 [% INCLUDE 'patron-search.inc' %]
10 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> › Delete patron [% patron.firstname %] [% patron.surname %]</div>
11 <div id="doc3" class="yui-t2">
16 [% INCLUDE 'members-toolbar.inc' %]
17 [% IF ( ItemsOnIssues || charges || guarantees ) %]
18 <div class="dialog alert">
19 <h3>Cannot delete patron</h3>
21 [% IF ( ItemsOnIssues ) %]
22 <li>Patron has [% ItemsOnIssues %] item(s) checked out.</li>
25 <li>Patron has [% charges %] in fines.</li>
27 [% IF ( guarantees ) %]
28 <li>Patron's record has guaranteed accounts attached.</li>
32 [% ELSIF op == 'delete_confirm' and patron %]
33 [%# TODO add "patron does not exist" unless patron %]
34 <div class="dialog alert">
35 <h3>Are you sure you want to delete the patron [% patron.firstname %] [% patron.surname %]? This cannot be undone.</h3>
36 <form action="/cgi-bin/koha/members/deletemem.pl">
37 <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
38 <input type="hidden" name="member" value="[% patron.borrowernumber %]"/>
39 <input type="hidden" name="op" value="delete_confirmed" />
40 <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
42 <form action="/cgi-bin/koha/members/moremember.pl">
43 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]"/>
44 <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
48 [% IF ( keeplocal ) %]
49 <div class="dialog message">
50 <h3>Remote record deleted, local record kept</h3>
51 <p>Patron was marked for deletion from Norwegian national patron database, but the local record was kept.</p>
58 [% INCLUDE 'circ-menu.inc' %]
62 [% MACRO jsinclude BLOCK %]
63 <script type="text/javascript" src="[% interface %]/[% theme %]/js/members-menu_[% KOHA_VERSION %].js"></script>
66 [% INCLUDE 'intranet-bottom.inc' %]