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