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 [% WRAPPER breadcrumbs %]
18 [% WRAPPER breadcrumb_item %]
19 <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
21 [% WRAPPER breadcrumb_item %]
22 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">[% INCLUDE 'patron-title.inc' %]</a>
24 [% WRAPPER breadcrumb_item bc_active= 1 %]
25 <span>Discharge</span>
27 [% END #/ WRAPPER breadcrumbs %]
28 [% END #/ WRAPPER sub-header.inc %]
30 <div class="main container-fluid">
32 <div class="col-sm-10 col-sm-push-2">
35 [% INCLUDE 'members-toolbar.inc' %]
38 [% FOR message IN messages %]
39 <div class="dialog [% message.type | html %]">
40 [% IF message.code == "unable_to_generate_pdf" %]
41 An error occurs when generating the PDF file.
42 Please contact the administrator to resolve this problem.
46 [% UNLESS can_be_discharged %]
47 <p>Cannot edit discharge: the patron has checked out items.</p>
49 [% IF patron.holds.count %]
50 <p>Patron has holds. They will be cancelled if the discharge is generated.</p>
52 <div class="btn-toolbar">
54 <input type="submit" name="discharge" class="btn btn-primary" value="Generate discharge" />
55 <input type="hidden" value="[% patron.borrowernumber | html %]" name="borrowernumber" />
60 [% IF validated_discharges %]
61 <div class="page-section">
62 <h2>Already validated discharges</h2>
71 [% FOR d IN validated_discharges %]
73 <td>[% d.needed | $KohaDates with_hours = 1 %]</td>
74 <td>[% d.validated | $KohaDates with_hours = 1 %]</td>
83 </div> <!-- /.col-sm-10.col-sm-push-2 -->
85 <div class="col-sm-2 col-sm-pull-10">
87 [% INCLUDE 'circ-menu.inc' %]
89 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
92 [% MACRO jsinclude BLOCK %]
93 [% INCLUDE 'str/members-menu.inc' %]
94 [% Asset.js("js/members-menu.js") | $raw %]
97 [% INCLUDE 'intranet-bottom.inc' %]