4 [% USE AuthorisedValues %]
7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>[% UNLESS blocking_error %]Discharge for [% patron.firstname | html %] [% patron.surname | html %] ([% patron.cardnumber | html %])[% END %] › Patrons › Koha</title>
9 [% INCLUDE 'doc-head-close.inc' %]
11 <body id="discharge" class="discharge">
12 [% INCLUDE 'header.inc' %]
13 [% INCLUDE 'patron-search-header.inc' %]
15 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
18 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
21 [% IF blocking_error %]
23 <a href="#" aria-current="page">
29 <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
32 <a href="#" aria-current="page">
33 Discharge for [% patron.firstname | html %] [% patron.surname | html %] ([% patron.cardnumber | html %])
40 <div class="main container-fluid">
42 <div class="col-sm-10 col-sm-push-2">
45 [% INCLUDE 'members-toolbar.inc' %]
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.
56 [% UNLESS can_be_discharged %]
57 <p>Cannot edit discharge: the patron has checked out items.</p>
59 [% IF patron.holds.count %]
60 <p>Patron has holds. They will be cancelled if the discharge is generated.</p>
63 <input type="submit" value="Generate discharge" name="discharge" />
64 <input type="hidden" value="[% patron.borrowernumber | html %]" name="borrowernumber" />
68 [% IF validated_discharges %]
69 <h2>Already validated discharges</h2>
78 [% FOR d IN validated_discharges %]
80 <td>[% d.needed | $KohaDates with_hours = 1 %]</td>
81 <td>[% d.validated | $KohaDates with_hours = 1 %]</td>
89 </div> <!-- /.col-sm-10.col-sm-push-2 -->
91 <div class="col-sm-2 col-sm-pull-10">
93 [% INCLUDE 'circ-menu.inc' %]
95 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
98 [% MACRO jsinclude BLOCK %]
99 [% INCLUDE 'str/members-menu.inc' %]
100 [% Asset.js("js/members-menu.js") | $raw %]
103 [% INCLUDE 'intranet-bottom.inc' %]