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