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