Bug 30952: Staff interface redesign (header)
[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>[% UNLESS blocking_error  %]Discharge for [% patron.firstname | html %] [% patron.surname | html %] ([% patron.cardnumber | html %])[% END %] &rsaquo; Patrons &rsaquo; Koha</title>
9 [% INCLUDE 'doc-head-close.inc' %]
10 </head>
11 <body id="discharge" class="discharge">
12 [% WRAPPER 'header.inc' %]
13     [% INCLUDE 'patron-search-header.inc' %]
14 [% END %]
15
16 [% WRAPPER 'sub-header.inc' %]
17 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
18     <ol>
19         <li>
20             <a href="/cgi-bin/koha/mainpage.pl"><i class="fa fa-home"></i></a>
21         </li>
22
23         [% IF blocking_error %]
24             <li>
25                 <a href="#" aria-current="page">
26                     Patrons
27                 </a>
28             </li>
29         [% ELSE  %]
30             <li>
31                 <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
32             </li>
33             <li>
34                 <a href="#" aria-current="page">
35                     Discharge for [% patron.firstname | html %] [% patron.surname | html %] ([% patron.cardnumber | html %])
36                 </a>
37             </li>
38         [% END %]
39     </ol>
40 </nav>
41 [% END %]
42
43 <div class="main container-fluid">
44     <div class="row">
45         <div class="col-sm-10 col-sm-push-2">
46             <main>
47
48 [% INCLUDE 'members-toolbar.inc' %]
49
50 <h1>Discharge</h1>
51 [% FOR message IN messages %]
52     <div class="dialog [% message.type | html %]">
53     [% IF message.code == "unable_to_generate_pdf" %]
54         An error occurs when generating the PDF file.
55         Please contact the administrator to resolve this problem.
56     [% END %]
57     </div>
58 [% END %]
59 [% UNLESS can_be_discharged %]
60     <p>Cannot edit discharge: the patron has checked out items.</p>
61 [% ELSE %]
62     [% IF patron.holds.count %]
63         <p>Patron has holds. They will be cancelled if the discharge is generated.</p>
64     [% END %]
65     <form method="post">
66         <input type="submit" value="Generate discharge" name="discharge" />
67         <input type="hidden" value="[% patron.borrowernumber | html %]" name="borrowernumber" />
68     </form>
69 [% END %]
70
71 [% IF validated_discharges %]
72     <h2>Already validated discharges</h2>
73     <table>
74         <thead>
75             <tr>
76                 <th>Requested</th>
77                 <th>Validated</th>
78             </tr>
79         </thead>
80         <tbody>
81             [% FOR d IN validated_discharges %]
82                 <tr>
83                     <td>[% d.needed | $KohaDates with_hours = 1 %]</td>
84                     <td>[% d.validated | $KohaDates with_hours = 1 %]</td>
85                 </tr>
86             [% END %]
87         </tbody>
88     </table>
89 [% END %]
90
91             </main>
92         </div> <!-- /.col-sm-10.col-sm-push-2 -->
93
94         <div class="col-sm-2 col-sm-pull-10">
95             <aside>
96                 [% INCLUDE 'circ-menu.inc' %]
97             </aside>
98         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
99      </div> <!-- /.row -->
100
101 [% MACRO jsinclude BLOCK %]
102     [% INCLUDE 'str/members-menu.inc' %]
103     [% Asset.js("js/members-menu.js") | $raw %]
104 [% END %]
105
106 [% INCLUDE 'intranet-bottom.inc' %]