4 [% USE AuthorisedValues %]
6 [% PROCESS 'i18n.inc' %]
8 [% INCLUDE 'doc-head-open.inc' %]
9 <title>[% FILTER collapse %]
10 [% UNLESS blocking_error %]
11 [% t("Discharge for") | html %] [% INCLUDE 'patron-title.inc' no_html = 1 %] ›
13 [% t("Patrons") | html %] ›
14 [% t("Koha") | html %]
16 [% INCLUDE 'doc-head-close.inc' %]
18 <body id="discharge" class="discharge">
19 [% WRAPPER 'header.inc' %]
20 [% INCLUDE 'patron-search-header.inc' %]
23 [% WRAPPER 'sub-header.inc' %]
24 [% WRAPPER breadcrumbs %]
25 [% WRAPPER breadcrumb_item %]
26 <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
28 [% WRAPPER breadcrumb_item %]
29 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">[% INCLUDE 'patron-title.inc' %]</a>
31 [% WRAPPER breadcrumb_item bc_active= 1 %]
32 <span>Discharge</span>
34 [% END #/ WRAPPER breadcrumbs %]
35 [% END #/ WRAPPER sub-header.inc %]
37 <div class="main container-fluid">
39 <div class="col-sm-10 col-sm-push-2">
42 [% INCLUDE 'members-toolbar.inc' %]
45 [% FOR message IN messages %]
46 <div class="dialog [% message.type | html %]">
47 [% IF message.code == "unable_to_generate_pdf" %]
48 An error occurs when generating the PDF file.
49 Please contact the administrator to resolve this problem.
53 [% UNLESS can_be_discharged %]
54 <p>Cannot edit discharge: the patron has checked out items.</p>
56 [% IF patron.holds.count %]
57 <p>Patron has holds. They will be cancelled if the discharge is generated.</p>
59 <div class="btn-toolbar">
61 <input type="submit" name="discharge" class="btn btn-primary" value="Generate discharge" />
62 <input type="hidden" value="[% patron.borrowernumber | html %]" name="borrowernumber" />
67 [% IF validated_discharges %]
68 <div class="page-section">
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>
90 </div> <!-- /.col-sm-10.col-sm-push-2 -->
92 <div class="col-sm-2 col-sm-pull-10">
94 [% INCLUDE 'circ-menu.inc' %]
96 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
99 [% MACRO jsinclude BLOCK %]
100 [% INCLUDE 'str/members-menu.inc' %]
101 [% Asset.js("js/members-menu.js") | $raw %]
104 [% INCLUDE 'intranet-bottom.inc' %]