Bug 19641: (follow-up) Move patron templates to the footer
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / discharge.tt
1 [% USE KohaDates %]
2 [% USE AuthorisedValues %]
3 [% USE Branches %]
4 [% SET footerjs = 1 %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Koha &rsaquo; Patrons &rsaquo; [% UNLESS blocking_error  %]Discharge for [% firstname %] [% surname %] ([% cardnumber %])[% END %]</title>
7 [% INCLUDE 'doc-head-close.inc' %]
8 </head>
9 <body id="discharge" class="discharge">
10 [% INCLUDE 'header.inc' %]
11 [% INCLUDE 'patron-search.inc' %]
12
13 <div id="breadcrumbs">
14          <a href="/cgi-bin/koha/mainpage.pl">Home</a>
15 &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
16 &rsaquo; [% UNLESS blocking_error  %]Discharge for [% firstname %] [% surname %] ([% cardnumber %])[% END %]
17 </div>
18
19 <div id="doc3" class="yui-t1">
20    <div id="bd">
21     <div id="yui-main">
22     <div class="yui-b">
23 <div class="yui-g">
24 <h3>Discharge</h3>
25 [% FOR message IN messages %]
26     <div class="dialog [% message.type %]">
27     [% IF message.code == "unable_to_generate_pdf" %]
28         An error occurs when generating the pdf file.
29         Please contact the administrator to resolve this problem.
30     [% END %]
31     </div>
32 [% END %]
33 [% UNLESS can_be_discharged %]
34     <p>Cannot edit discharge: the patron has checked out items.</p>
35 [% ELSE %]
36     [% IF has_reserves %]
37         <p>Borrower has reserves: they will be canceled if the discharge is generated.</p>
38     [% END %]
39     <form method="post">
40         <input type="submit" value="Generate discharge" name="discharge" />
41         <input type="hidden" value="[% borrowernumber %]" name="borrowernumber" />
42     </form>
43 [% END %]
44
45 [% IF validated_discharges %]
46     <h2>Already validated discharges</h2>
47     <table>
48         <thead>
49             <tr>
50                 <th>Requested</th>
51                 <th>Validated</th>
52             </tr>
53         </thead>
54         <tbody>
55             [% FOR d IN validated_discharges %]
56                 <tr>
57                     <td>[% d.needed | $KohaDates with_hours = 1 %]</td>
58                     <td>[% d.validated | $KohaDates with_hours = 1 %]</td>
59                 </tr>
60             [% END %]
61         </tbody>
62     </table>
63 [% END %]
64
65 </div>
66
67
68 </div>
69 </div>
70 <div class="yui-b">
71 [% INCLUDE 'circ-menu.inc' %]
72 </div>
73 </div>
74
75 [% MACRO jsinclude BLOCK %]
76     <script type="text/javascript" src="[% interface %]/[% theme %]/js/members-menu_[% KOHA_VERSION %].js"></script>
77 [% END %]
78
79 [% INCLUDE 'intranet-bottom.inc' %]