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