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