Bug 19933: Remove patronflags - easy ones
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / deletemem.tt
1 [% USE Price %]
2 [% SET footerjs = 1 %]
3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha &rsaquo; Delete patron [% patron.firstname %] [% patron.surname %]</title>
5 [% INCLUDE 'doc-head-close.inc' %]
6 </head>
7 <body id="pat_deletemem" class="pat">
8 [% INCLUDE 'header.inc' %]
9 [% INCLUDE 'patron-search.inc' %]
10
11 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> &rsaquo; Delete patron [% patron.firstname %] [% patron.surname %]</div>
12 <div id="doc3" class="yui-t2">
13    
14    <div id="bd">
15     <div id="yui-main">
16     <div class="yui-b">
17     [% INCLUDE 'members-toolbar.inc' %]
18     [% IF ( ItemsOnIssues || charges || guarantees ) %]
19         <div class="dialog alert">
20         <h3>Cannot delete patron</h3>
21             <ul>
22             [% IF ( ItemsOnIssues ) %]
23                 <li>Patron has [% ItemsOnIssues %] item(s) checked out.</li>
24             [% END %]
25             [% IF ( charges ) %]
26                 <li>Patron has [% charges | $Prices %] in fines.</li>
27             [% END %]
28             [% IF ( guarantees ) %]
29                 <li>Patron's record has guaranteed accounts attached.</li>
30             [% END %]
31             </ul>
32     </div>
33     [% ELSIF op == 'delete_confirm' and patron %]
34         [%# TODO add "patron does not exist" unless patron %]
35         <div class="dialog alert">
36             <h3>Are you sure you want to delete the patron [% patron.firstname %] [% patron.surname %]? This cannot be undone.</h3>
37             <form action="/cgi-bin/koha/members/deletemem.pl">
38                 <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
39                 <input type="hidden" name="member" value="[% patron.borrowernumber %]"/>
40                 <input type="hidden" name="op" value="delete_confirmed" />
41                 <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
42             </form>
43             <form action="/cgi-bin/koha/members/moremember.pl">
44                 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]"/>
45                 <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
46             </form>
47         </div>
48     [% END %]
49     [% IF ( keeplocal ) %]
50         <div class="dialog message">
51         <h3>Remote record deleted, local record kept</h3>
52         <p>Patron was marked for deletion from Norwegian national patron database, but the local record was kept.</p>
53         </div>
54     [% END %]
55 </div>
56 </div>
57
58 <div class="yui-b">
59 [% INCLUDE 'circ-menu.inc' %]
60 </div>
61 </div>
62
63 [% MACRO jsinclude BLOCK %]
64     <script type="text/javascript" src="[% interface %]/[% theme %]/js/members-menu_[% KOHA_VERSION %].js"></script>
65 [% END %]
66
67 [% INCLUDE 'intranet-bottom.inc' %]