6 [% INCLUDE 'doc-head-open.inc' %]
7 <title>Delete patron [% patron.firstname | html %] [% patron.surname | html %] › Koha</title>
8 [% INCLUDE 'doc-head-close.inc' %]
10 <body id="pat_deletemem" class="pat">
11 [% WRAPPER 'header.inc' %]
12 [% INCLUDE 'patron-search-header.inc' %]
15 [% WRAPPER 'sub-header.inc' %]
16 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
19 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
22 <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
25 <a href="#" aria-current="page">
26 Delete patron [% patron.firstname | html %] [% patron.surname | html %]
33 <div class="main container-fluid">
35 <div class="col-sm-10 col-sm-push-2">
38 [% INCLUDE 'members-toolbar.inc' %]
39 [% IF ItemsOnIssues || debits || is_guarantor %]
40 <div class="dialog alert">
41 <h1>Cannot delete patron</h1>
43 [% IF ( ItemsOnIssues ) %]
44 <li>Patron has [% ItemsOnIssues | html %] item(s) checked out.</li>
47 <li>Patron has [% debits | $Price %] in fines.</li>
50 <li>Patron's record has guaranteed accounts attached.</li>
54 [% ELSIF op == 'delete_confirm' and patron %]
55 [%# TODO add "patron does not exist" unless patron %]
56 <div class="dialog alert">
57 [% IF ItemsOnHold or credits or pending_suggestions > 0 %]
60 <li>Patron has [% ItemsOnHold | html %] hold(s). Deleting patron cancels all their holds.</li>
63 <li>Patron has a [% credits | $Price %] credit.</li>
65 [% IF pending_suggestions > 0 %]
66 <li>Patron has [% pending_suggestions | html %] pending suggestions.</li>
70 <h1>Are you sure you want to delete the patron [% patron.firstname | html %] [% patron.surname | html %]?</h1>
71 <p>This cannot be undone.</p>
72 <form action="/cgi-bin/koha/members/deletemem.pl">
73 <input type="hidden" name="csrf_token" value="[% csrf_token | html %]" />
74 <input type="hidden" name="member" value="[% patron.borrowernumber | html %]"/>
75 <input type="hidden" name="op" value="delete_confirmed" />
76 <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
78 <form action="/cgi-bin/koha/members/moremember.pl">
79 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]"/>
80 <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
86 </div> <!-- /.col-sm-10.col-sm-push-2 -->
88 <div class="col-sm-2 col-sm-pull-10">
90 [% INCLUDE 'circ-menu.inc' %]
92 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
95 [% MACRO jsinclude BLOCK %]
96 [% INCLUDE 'str/members-menu.inc' %]
97 [% Asset.js("js/members-menu.js") | $raw %]
100 [% INCLUDE 'intranet-bottom.inc' %]