5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Koha › Delete patron [% patron.firstname %] [% patron.surname %]</title>
7 [% INCLUDE 'doc-head-close.inc' %]
9 <body id="pat_deletemem" class="pat">
10 [% INCLUDE 'header.inc' %]
11 [% INCLUDE 'patron-search.inc' %]
13 <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>
14 <div id="doc3" class="yui-t2">
19 [% INCLUDE 'members-toolbar.inc' %]
20 [% IF ( ItemsOnIssues || charges || guarantees ) %]
21 <div class="dialog alert">
22 <h3>Cannot delete patron</h3>
24 [% IF ( ItemsOnIssues ) %]
25 <li>Patron has [% ItemsOnIssues %] item(s) checked out.</li>
28 <li>Patron has [% charges | $Price %] in fines.</li>
30 [% IF ( guarantees ) %]
31 <li>Patron's record has guaranteed accounts attached.</li>
35 [% ELSIF op == 'delete_confirm' and patron %]
36 [%# TODO add "patron does not exist" unless patron %]
37 <div class="dialog alert">
38 <h3>Are you sure you want to delete the patron [% patron.firstname %] [% patron.surname %]? This cannot be undone.</h3>
39 <form action="/cgi-bin/koha/members/deletemem.pl">
40 <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
41 <input type="hidden" name="member" value="[% patron.borrowernumber %]"/>
42 <input type="hidden" name="op" value="delete_confirmed" />
43 <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
45 <form action="/cgi-bin/koha/members/moremember.pl">
46 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]"/>
47 <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
51 [% IF ( keeplocal ) %]
52 <div class="dialog message">
53 <h3>Remote record deleted, local record kept</h3>
54 <p>Patron was marked for deletion from Norwegian national patron database, but the local record was kept.</p>
61 [% INCLUDE 'circ-menu.inc' %]
65 [% MACRO jsinclude BLOCK %]
66 [% Asset.js("js/members-menu.js") %]
69 [% INCLUDE 'intranet-bottom.inc' %]