4 [% USE AuthorisedValues %]
7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>Koha › Patrons › [% UNLESS blocking_error %]Discharge for [% patron.firstname | html %] [% patron.surname | html %] ([% patron.cardnumber | html %])[% END %]</title>
9 [% INCLUDE 'doc-head-close.inc' %]
11 <body id="discharge" class="discharge">
12 [% INCLUDE 'header.inc' %]
13 [% INCLUDE 'patron-search.inc' %]
15 <div id="breadcrumbs">
16 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
17 › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
18 › [% UNLESS blocking_error %]Discharge for [% patron.firstname | html %] [% patron.surname | html %] ([% patron.cardnumber | html %])[% END %]
21 <div class="main container-fluid">
23 <div class="col-sm-10 col-sm-push-2">
27 [% FOR message IN messages %]
28 <div class="dialog [% message.type | html %]">
29 [% IF message.code == "unable_to_generate_pdf" %]
30 An error occurs when generating the pdf file.
31 Please contact the administrator to resolve this problem.
35 [% UNLESS can_be_discharged %]
36 <p>Cannot edit discharge: the patron has checked out items.</p>
38 [% IF patron.holds.count %]
39 <p>Patron has holds. They will be cancelled if the discharge is generated.</p>
42 <input type="submit" value="Generate discharge" name="discharge" />
43 <input type="hidden" value="[% patron.borrowernumber | html %]" name="borrowernumber" />
47 [% IF validated_discharges %]
48 <h2>Already validated discharges</h2>
57 [% FOR d IN validated_discharges %]
59 <td>[% d.needed | $KohaDates with_hours = 1 %]</td>
60 <td>[% d.validated | $KohaDates with_hours = 1 %]</td>
68 </div> <!-- /.col-sm-10.col-sm-push-2 -->
70 <div class="col-sm-2 col-sm-pull-10">
72 [% INCLUDE 'circ-menu.inc' %]
74 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
77 [% MACRO jsinclude BLOCK %]
78 [% INCLUDE 'str/members-menu.inc' %]
79 [% Asset.js("js/members-menu.js") | $raw %]
82 [% INCLUDE 'intranet-bottom.inc' %]