Bug 32977: Add callnumber column to boraccount.tt
[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>Delete patron [% patron.firstname | html %] [% patron.surname | html %] &rsaquo; Koha</title>
8 [% INCLUDE 'doc-head-close.inc' %]
9 </head>
10 <body id="pat_deletemem" class="pat">
11 [% WRAPPER 'header.inc' %]
12     [% INCLUDE 'patron-search-header.inc' %]
13 [% END %]
14
15 [% WRAPPER 'sub-header.inc' %]
16 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
17     <ol>
18         <li>
19             <a href="/cgi-bin/koha/mainpage.pl">Home</a>
20         </li>
21         <li>
22             <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
23         </li>
24         <li>
25             <a href="#" aria-current="page">
26                 Delete patron [% patron.firstname | html %] [% patron.surname | html %]
27             </a>
28         </li>
29     </ol>
30 </nav>
31 [% END %]
32
33 <div class="main container-fluid">
34     <div class="row">
35         <div class="col-sm-10 col-sm-push-2">
36             <main>
37
38     [% INCLUDE 'members-toolbar.inc' %]
39     [% IF ItemsOnIssues || debits || is_guarantor %]
40         <div class="dialog alert">
41         <h1>Cannot delete patron</h1>
42             <ul>
43             [% IF ( ItemsOnIssues ) %]
44                 <li>Patron has [% ItemsOnIssues | html %] item(s) checked out.</li>
45             [% END %]
46             [% IF debits %]
47                 <li>Patron has [% debits | $Price %] in fines.</li>
48             [% END %]
49             [% IF is_guarantor %]
50                 <li>Patron's record has guaranteed accounts attached.</li>
51             [% END %]
52             </ul>
53     </div>
54     [% ELSIF op == 'delete_confirm' and patron %]
55         [%# TODO add "patron does not exist" unless patron %]
56         <div class="dialog alert">
57             [% IF ItemsOnHold or credits or pending_suggestions > 0 %]
58                 <ul>
59                     [% IF ItemsOnHold %]
60                         <li>Patron has [% ItemsOnHold | html %] hold(s). Deleting patron cancels all their holds.</li>
61                     [% END %]
62                     [% IF credits %]
63                         <li>Patron has a [% credits | $Price %] credit.</li>
64                     [% END %]
65                     [% IF pending_suggestions > 0 %]
66                         <li>Patron has [% pending_suggestions | html %] pending suggestions.</li>
67                     [% END %]
68                 </ul>
69             [% END %]
70             <h1>Are you sure you want to delete the patron [% patron.firstname | html %] [% patron.surname | html %]?</h1>
71             <p>This cannot be undone.</p>
72             <form action="/cgi-bin/koha/members/deletemem.pl">
73                 <input type="hidden" name="csrf_token" value="[% csrf_token | html %]" />
74                 <input type="hidden" name="member" value="[% patron.borrowernumber | html %]"/>
75                 <input type="hidden" name="op" value="delete_confirmed" />
76                 <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
77             </form>
78             <form action="/cgi-bin/koha/members/moremember.pl">
79                 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]"/>
80                 <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
81             </form>
82         </div>
83     [% END %]
84
85             </main>
86         </div> <!-- /.col-sm-10.col-sm-push-2 -->
87
88         <div class="col-sm-2 col-sm-pull-10">
89             <aside>
90                 [% INCLUDE 'circ-menu.inc' %]
91             </aside>
92         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
93      </div> <!-- /.row -->
94
95 [% MACRO jsinclude BLOCK %]
96     [% INCLUDE 'str/members-menu.inc' %]
97     [% Asset.js("js/members-menu.js") | $raw %]
98 [% END %]
99
100 [% INCLUDE 'intranet-bottom.inc' %]