Bug 22553: Unchecking a subpermission does not uncheck the top level permission
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / discharge.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% USE KohaDates %]
4 [% USE AuthorisedValues %]
5 [% USE Branches %]
6 [% SET footerjs = 1 %]
7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>Koha &rsaquo; Patrons &rsaquo; [% UNLESS blocking_error  %]Discharge for [% patron.firstname | html %] [% patron.surname | html %] ([% patron.cardnumber | html %])[% END %]</title>
9 [% INCLUDE 'doc-head-close.inc' %]
10 </head>
11 <body id="discharge" class="discharge">
12 [% INCLUDE 'header.inc' %]
13 [% INCLUDE 'patron-search.inc' %]
14
15 <div id="breadcrumbs">
16          <a href="/cgi-bin/koha/mainpage.pl">Home</a>
17 &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
18 &rsaquo; [% UNLESS blocking_error  %]Discharge for [% patron.firstname | html %] [% patron.surname | html %] ([% patron.cardnumber | html %])[% END %]
19 </div>
20
21 <div class="main container-fluid">
22     <div class="row">
23         <div class="col-sm-10 col-sm-push-2">
24             <main>
25
26 <h3>Discharge</h3>
27 [% FOR message IN messages %]
28     <div class="dialog [% message.type | html %]">
29     [% IF message.code == "unable_to_generate_pdf" %]
30         An error occurs when generating the pdf file.
31         Please contact the administrator to resolve this problem.
32     [% END %]
33     </div>
34 [% END %]
35 [% UNLESS can_be_discharged %]
36     <p>Cannot edit discharge: the patron has checked out items.</p>
37 [% ELSE %]
38     [% IF patron.holds.count %]
39         <p>Patron has holds. They will be cancelled if the discharge is generated.</p>
40     [% END %]
41     <form method="post">
42         <input type="submit" value="Generate discharge" name="discharge" />
43         <input type="hidden" value="[% patron.borrowernumber | html %]" name="borrowernumber" />
44     </form>
45 [% END %]
46
47 [% IF validated_discharges %]
48     <h2>Already validated discharges</h2>
49     <table>
50         <thead>
51             <tr>
52                 <th>Requested</th>
53                 <th>Validated</th>
54             </tr>
55         </thead>
56         <tbody>
57             [% FOR d IN validated_discharges %]
58                 <tr>
59                     <td>[% d.needed | $KohaDates with_hours = 1 %]</td>
60                     <td>[% d.validated | $KohaDates with_hours = 1 %]</td>
61                 </tr>
62             [% END %]
63         </tbody>
64     </table>
65 [% END %]
66
67             </main>
68         </div> <!-- /.col-sm-10.col-sm-push-2 -->
69
70         <div class="col-sm-2 col-sm-pull-10">
71             <aside>
72                 [% INCLUDE 'circ-menu.inc' %]
73             </aside>
74         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
75      </div> <!-- /.row -->
76
77 [% MACRO jsinclude BLOCK %]
78     [% INCLUDE 'str/members-menu.inc' %]
79     [% Asset.js("js/members-menu.js") | $raw %]
80 [% END %]
81
82 [% INCLUDE 'intranet-bottom.inc' %]