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