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