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 [% WRAPPER 'header.inc' %]
13 [% INCLUDE 'patron-search-header.inc' %]
16 [% WRAPPER 'sub-header.inc' %]
17 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
20 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
23 [% IF blocking_error %]
25 <a href="#" aria-current="page">
31 <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
34 <a href="#" aria-current="page">
35 Discharge for [% patron.firstname | html %] [% patron.surname | html %] ([% patron.cardnumber | html %])
43 <div class="main container-fluid">
45 <div class="col-sm-10 col-sm-push-2">
48 [% INCLUDE 'members-toolbar.inc' %]
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.
59 [% UNLESS can_be_discharged %]
60 <p>Cannot edit discharge: the patron has checked out items.</p>
62 [% IF patron.holds.count %]
63 <p>Patron has holds. They will be cancelled if the discharge is generated.</p>
66 <input type="submit" value="Generate discharge" name="discharge" />
67 <input type="hidden" value="[% patron.borrowernumber | html %]" name="borrowernumber" />
71 [% IF validated_discharges %]
72 <h2>Already validated discharges</h2>
81 [% FOR d IN validated_discharges %]
83 <td>[% d.needed | $KohaDates with_hours = 1 %]</td>
84 <td>[% d.validated | $KohaDates with_hours = 1 %]</td>
92 </div> <!-- /.col-sm-10.col-sm-push-2 -->
94 <div class="col-sm-2 col-sm-pull-10">
96 [% INCLUDE 'circ-menu.inc' %]
98 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
101 [% MACRO jsinclude BLOCK %]
102 [% INCLUDE 'str/members-menu.inc' %]
103 [% Asset.js("js/members-menu.js") | $raw %]
106 [% INCLUDE 'intranet-bottom.inc' %]