Bug 21211: Add patron toolbar to suggestions, discharges and ill requests tabs
[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 [% INCLUDE 'members-toolbar.inc' %]
27
28 <h1>Discharge</h1>
29 [% FOR message IN messages %]
30     <div class="dialog [% message.type | html %]">
31     [% IF message.code == "unable_to_generate_pdf" %]
32         An error occurs when generating the PDF file.
33         Please contact the administrator to resolve this problem.
34     [% END %]
35     </div>
36 [% END %]
37 [% UNLESS can_be_discharged %]
38     <p>Cannot edit discharge: the patron has checked out items.</p>
39 [% ELSE %]
40     [% IF patron.holds.count %]
41         <p>Patron has holds. They will be cancelled if the discharge is generated.</p>
42     [% END %]
43     <form method="post">
44         <input type="submit" value="Generate discharge" name="discharge" />
45         <input type="hidden" value="[% patron.borrowernumber | html %]" name="borrowernumber" />
46     </form>
47 [% END %]
48
49 [% IF validated_discharges %]
50     <h2>Already validated discharges</h2>
51     <table>
52         <thead>
53             <tr>
54                 <th>Requested</th>
55                 <th>Validated</th>
56             </tr>
57         </thead>
58         <tbody>
59             [% FOR d IN validated_discharges %]
60                 <tr>
61                     <td>[% d.needed | $KohaDates with_hours = 1 %]</td>
62                     <td>[% d.validated | $KohaDates with_hours = 1 %]</td>
63                 </tr>
64             [% END %]
65         </tbody>
66     </table>
67 [% END %]
68
69             </main>
70         </div> <!-- /.col-sm-10.col-sm-push-2 -->
71
72         <div class="col-sm-2 col-sm-pull-10">
73             <aside>
74                 [% INCLUDE 'circ-menu.inc' %]
75             </aside>
76         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
77      </div> <!-- /.row -->
78
79 [% MACRO jsinclude BLOCK %]
80     [% INCLUDE 'str/members-menu.inc' %]
81     [% Asset.js("js/members-menu.js") | $raw %]
82 [% END %]
83
84 [% INCLUDE 'intranet-bottom.inc' %]