Bug 20516: Show patron's library in pending discharges table
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / discharges.tt
blobbd2e254f172165116533dfbaf9239628b0bab34f
1 [% USE Branches %]
2 [% SET footerjs = 1 %]
3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha &rsaquo; Patrons &rsaquo; Pending discharge requests</title>
5 [% INCLUDE 'doc-head-close.inc' %]
6 </head>
7 <body id="pat_discharges" class="pat">
8 [% INCLUDE 'header.inc' %]
9 [% INCLUDE 'patron-search.inc' %]
11 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> &rsaquo; Pending discharge requests</div>
13     <div class="main container-fluid">
14         <div class="row">
15             <div class="col-md-8 col-md-offset-2">
17     [% IF pending_discharges %]
18       <h2>Pending discharge requests</h2>
19       <div id="pending_updates">
20         <table>
21           <thead>
22             <tr>
23               <th>Patron</th>
24               <th>Library</th>
25               <th>Allow</th>
26             </tr>
27           </thead>
28           <tbody>
29             [% FOREACH d IN pending_discharges %]
30               <tr>
31                 <td><a href="/cgi-bin/koha/members/discharge.pl?borrowernumber=[% d.borrower.borrowernumber %]">[% d.borrower.surname %], [% d.borrower.firstname %]</a></td>
32                 <td>[% d.borrower.branchcode.branchname %]</td>
33                 <td><a href="/cgi-bin/koha/members/discharges.pl?op=allow&borrowernumber=[% d.borrower.borrowernumber %]">Allow</a></td>
34               </tr>
35             [% END %]
36           </tbody>
37         </table>
38       </div>
39     [% ELSE %]
40       <div class="dialog message">
41         <p>There are no pending discharge requests.</p>
42       </div>
43     [% END %]
45     </div>
46 </div>
48 [% MACRO jsinclude BLOCK %]
49     <script type="text/javascript" src="[% interface %]/[% theme %]/js/members-menu_[% KOHA_VERSION %].js"></script>
50 [% END %]
52 [% INCLUDE 'intranet-bottom.inc' %]