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 [% INCLUDE 'header.inc' %]
12 [% INCLUDE 'patron-search.inc' %]
14 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
17 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
20 <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
23 <a href="#" aria-current="page">
24 Delete patron [% patron.firstname | html %] [% patron.surname | html %]
30 <div class="main container-fluid">
32 <div class="col-sm-10 col-sm-push-2">
35 [% INCLUDE 'members-toolbar.inc' %]
36 [% IF ItemsOnIssues || debits || is_guarantor %]
37 <div class="dialog alert">
38 <h3>Cannot delete patron</h3>
40 [% IF ( ItemsOnIssues ) %]
41 <li>Patron has [% ItemsOnIssues | html %] item(s) checked out.</li>
44 <li>Patron has [% debits | $Price %] in fines.</li>
47 <li>Patron's record has guaranteed accounts attached.</li>
51 [% ELSIF op == 'delete_confirm' and patron %]
52 [%# TODO add "patron does not exist" unless patron %]
53 <div class="dialog alert">
54 [% IF ItemsOnHold or credits or pending_suggestions > 0 %]
57 <li>Patron has [% ItemsOnHold | html %] hold(s). Deleting patron cancels all their holds.</li>
60 <li>Patron has a [% credits | $Price %] credit.</li>
62 [% IF pending_suggestions > 0 %]
63 <li>Patron has [% pending_suggestions | html %] pending suggestions.</li>
67 <h3>Are you sure you want to delete the patron [% patron.firstname | html %] [% patron.surname | html %]? This cannot be undone.</h3>
68 <form action="/cgi-bin/koha/members/deletemem.pl">
69 <input type="hidden" name="csrf_token" value="[% csrf_token | html %]" />
70 <input type="hidden" name="member" value="[% patron.borrowernumber | html %]"/>
71 <input type="hidden" name="op" value="delete_confirmed" />
72 <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
74 <form action="/cgi-bin/koha/members/moremember.pl">
75 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]"/>
76 <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
82 </div> <!-- /.col-sm-10.col-sm-push-2 -->
84 <div class="col-sm-2 col-sm-pull-10">
86 [% INCLUDE 'circ-menu.inc' %]
88 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
91 [% MACRO jsinclude BLOCK %]
92 [% INCLUDE 'str/members-menu.inc' %]
93 [% Asset.js("js/members-menu.js") | $raw %]
96 [% INCLUDE 'intranet-bottom.inc' %]