6 [% INCLUDE 'doc-head-open.inc' %]
7 <title>Koha › Delete patron [% patron.firstname | html %] [% patron.surname | html %]</title>
8 [% INCLUDE 'doc-head-close.inc' %]
10 <body id="pat_deletemem" class="pat">
11 [% INCLUDE 'header.inc' %]
12 [% INCLUDE 'patron-search.inc' %]
14 <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 | html %] [% patron.surname | html %]</div>
16 <div class="main container-fluid">
18 <div class="col-sm-10 col-sm-push-2">
21 [% INCLUDE 'members-toolbar.inc' %]
22 [% IF ItemsOnIssues || debits || is_guarantor %]
23 <div class="dialog alert">
24 <h3>Cannot delete patron</h3>
26 [% IF ( ItemsOnIssues ) %]
27 <li>Patron has [% ItemsOnIssues | html %] item(s) checked out.</li>
30 <li>Patron has [% debits | $Price %] in fines.</li>
33 <li>Patron's record has guaranteed accounts attached.</li>
37 [% ELSIF op == 'delete_confirm' and patron %]
38 [%# TODO add "patron does not exist" unless patron %]
39 <div class="dialog alert">
40 [% IF ItemsOnHold or credits %]
43 <li>Patron has [% ItemsOnHold | html %] hold(s). Deleting patron cancels all their holds.</li>
46 <li>Patron has a [% credits | $Price %] credit.</li>
50 <h3>Are you sure you want to delete the patron [% patron.firstname | html %] [% patron.surname | html %]? This cannot be undone.</h3>
51 [% IF pending_suggestions > 0 %]
52 <h3>Note that this patron has [% pending_suggestions %] pending suggestions.</h3>
54 <form action="/cgi-bin/koha/members/deletemem.pl">
55 <input type="hidden" name="csrf_token" value="[% csrf_token | html %]" />
56 <input type="hidden" name="member" value="[% patron.borrowernumber | html %]"/>
57 <input type="hidden" name="op" value="delete_confirmed" />
58 <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
60 <form action="/cgi-bin/koha/members/moremember.pl">
61 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]"/>
62 <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
68 </div> <!-- /.col-sm-10.col-sm-push-2 -->
70 <div class="col-sm-2 col-sm-pull-10">
72 [% INCLUDE 'circ-menu.inc' %]
74 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
77 [% MACRO jsinclude BLOCK %]
78 [% INCLUDE 'str/members-menu.inc' %]
79 [% Asset.js("js/members-menu.js") | $raw %]
82 [% INCLUDE 'intranet-bottom.inc' %]