5 [% PROCESS 'i18n.inc' %]
7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>[% FILTER collapse %]
9 [% t("Delete patron") | html %] [% INCLUDE 'patron-title.inc' no_html = 1 %] ›
10 [% t("Patrons") | html %] ›
11 [% t("Koha") | html %]
13 [% INCLUDE 'doc-head-close.inc' %]
15 <body id="pat_deletemem" class="pat">
16 [% WRAPPER 'header.inc' %]
17 [% INCLUDE 'patron-search-header.inc' %]
20 [% WRAPPER 'sub-header.inc' %]
21 [% WRAPPER breadcrumbs %]
22 [% WRAPPER breadcrumb_item %]
23 <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
25 [% WRAPPER breadcrumb_item %]
26 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">[% INCLUDE 'patron-title.inc' %]</a>
28 [% WRAPPER breadcrumb_item bc_active= 1 %]
29 <span>Delete patron</span>
31 [% END #/ WRAPPER breadcrumbs %]
32 [% END #/ WRAPPER sub-header.inc %]
34 <div class="main container-fluid">
36 <div class="col-sm-10 col-sm-push-2">
39 [% INCLUDE 'members-toolbar.inc' %]
40 [% IF ItemsOnIssues || debits || is_guarantor %]
41 <div class="dialog alert">
42 <h1>Cannot delete patron</h1>
44 [% IF ( ItemsOnIssues ) %]
45 <li>Patron has [% ItemsOnIssues | html %] item(s) checked out.</li>
48 <li>Patron has [% debits | $Price %] in fines.</li>
51 <li>Patron's record has guaranteed accounts attached.</li>
55 [% ELSIF op == 'delete_confirm' and patron %]
56 [%# TODO add "patron does not exist" unless patron %]
57 <div class="dialog alert">
58 [% IF ItemsOnHold or credits or pending_suggestions > 0 %]
61 <li>Patron has [% ItemsOnHold | html %] hold(s). Deleting patron cancels all their holds.</li>
64 <li>Patron has a [% credits | $Price %] credit.</li>
66 [% IF pending_suggestions > 0 %]
67 <li>Patron has [% pending_suggestions | html %] pending suggestions.</li>
71 <h1>Are you sure you want to delete the patron [% patron.firstname | html %] [% patron.surname | html %]?</h1>
72 <p>This cannot be undone.</p>
73 <form action="/cgi-bin/koha/members/deletemem.pl">
74 <input type="hidden" name="csrf_token" value="[% csrf_token | html %]" />
75 <input type="hidden" name="member" value="[% patron.borrowernumber | html %]"/>
76 <input type="hidden" name="op" value="delete_confirmed" />
77 <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
79 <form action="/cgi-bin/koha/members/moremember.pl">
80 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]"/>
81 <button type="submit" class="deny"><i class="fa fa-fw fa-times"></i> No, do not delete</button>
87 </div> <!-- /.col-sm-10.col-sm-push-2 -->
89 <div class="col-sm-2 col-sm-pull-10">
91 [% INCLUDE 'circ-menu.inc' %]
93 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
96 [% MACRO jsinclude BLOCK %]
97 [% INCLUDE 'str/members-menu.inc' %]
98 [% Asset.js("js/members-menu.js") | $raw %]
101 [% INCLUDE 'intranet-bottom.inc' %]