Bug 32977: Add callnumber column to boraccount.tt
[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">Home</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     <div class="btn-toolbar">
66         <form method="post">
67             <input type="submit" name="discharge" class="btn btn-primary" value="Generate discharge" />
68             <input type="hidden" value="[% patron.borrowernumber | html %]" name="borrowernumber" />
69         </form>
70     </div>
71 [% END %]
72
73 [% IF validated_discharges %]
74     <div class="page-section">
75         <h2>Already validated discharges</h2>
76         <table>
77             <thead>
78                 <tr>
79                     <th>Requested</th>
80                     <th>Validated</th>
81                 </tr>
82             </thead>
83             <tbody>
84                 [% FOR d IN validated_discharges %]
85                     <tr>
86                         <td>[% d.needed | $KohaDates with_hours = 1 %]</td>
87                         <td>[% d.validated | $KohaDates with_hours = 1 %]</td>
88                     </tr>
89                 [% END %]
90             </tbody>
91         </table>
92     </div>
93 [% END %]
94
95             </main>
96         </div> <!-- /.col-sm-10.col-sm-push-2 -->
97
98         <div class="col-sm-2 col-sm-pull-10">
99             <aside>
100                 [% INCLUDE 'circ-menu.inc' %]
101             </aside>
102         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
103      </div> <!-- /.row -->
104
105 [% MACRO jsinclude BLOCK %]
106     [% INCLUDE 'str/members-menu.inc' %]
107     [% Asset.js("js/members-menu.js") | $raw %]
108 [% END %]
109
110 [% INCLUDE 'intranet-bottom.inc' %]