Bug 32254: (follow-up) Add page section to Cashup history
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / on-site_checkouts.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% USE Koha %]
4 [% USE Branches %]
5 [% USE KohaDates %]
6 [% USE AuthorisedValues %]
7 [% SET footerjs = 1 %]
8 [% INCLUDE 'doc-head-open.inc' %]
9 <title>Pending on-site checkouts &rsaquo; Circulation &rsaquo; Koha</title>
10 [% INCLUDE 'doc-head-close.inc' %]
11 </head>
12
13 <body id="circ_stats" class="circ">
14 [% WRAPPER 'header.inc' %]
15     [% INCLUDE 'circ-search.inc' %]
16 [% END %]
17
18 [% WRAPPER 'sub-header.inc' %]
19 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
20     <ol>
21         <li>
22             <a href="/cgi-bin/koha/mainpage.pl">Home</a>
23         </li>
24         <li>
25             <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
26         </li>
27         <li>
28             <a href="#" aria-current="page">
29                 Pending on-site checkouts
30             </a>
31         </li>
32     </ol>
33 </nav>
34 [% END %]
35
36 <div class="main container-fluid">
37     <div class="row">
38         <div class="col-sm-12">
39             <main>
40                 <div class="row">
41
42                 [% IF Koha.Preference('CircSidebar') %]
43                     <div class="col-sm-10 col-sm-push-2">
44                 [% ELSE %]
45                     <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
46                 [% END %]
47
48         <h1>Pending on-site checkouts</h1>
49         [% IF pending_onsite_checkouts %]
50             <div class="page-section">
51                 <table id="pending_onsite_checkout">
52                     <thead>
53                         <tr>
54                             <th>Date</th><th>Patron</th><th>Title</th><th>Call number</th><th>Barcode</th><th>Library</th><th>Location</th>
55                         </tr>
56                     </thead>
57                     <tbody>
58                         [% FOREACH item IN pending_onsite_checkouts %]
59                             <tr>
60                                 <td data-order="[% item.date_due | html %]">
61                                     [% IF item.is_overdue %]<span class="overdue">[% END %]
62                                     [% item.date_due | $KohaDates %]
63                                     [% IF item.is_overdue %]</span>[% END %]
64                                 </td>
65                                 <td>
66                                     <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% item.borrowernumber | uri %]">[% item.firstname | html %] [% item.surname | html %]</a>
67                                 </td>
68                                 <td>
69                                     <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.biblionumber | uri %]"><strong>[% item.title | html %]</strong></a>[% IF ( item.author ) %], by [% item.author | html %][% END %][% IF ( item.itemnotes ) %]- <span class="circ-hlt">[% item.itemnotes | $raw %]</span>[% END %]
70                                 </td>
71                                 <td>[% item.itemcallnumber | html %]</td>
72                                 <td>
73                                     <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% item.biblionumber | uri %]&amp;itemnumber=[% item.itemnumber | uri %]#item[% item.itemnumber | uri %]">[% item.barcode | html %]</a>
74                                 </td>
75                                 <td>[% Branches.GetName(item.branchcode) | html %]</td>
76                                 <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) | html %]</td>
77                             </tr>
78                         [% END %]
79                     </tbody>
80                 </table>
81             </div> <!-- /.page-section -->
82         [% ELSE %]
83           <h3>No pending on-site checkout.</h3>
84         [% END %]
85
86                     [% IF Koha.Preference('CircSidebar') %]
87                             </div> <!-- /.col-sm-10.col-sm-push-2 -->
88                             <div class="col-sm-2 col-sm-pull-10">
89                                 <aside>
90                                     [% INCLUDE 'circ-nav.inc' %]
91                                 </aside>
92                             </div> <!-- /.col-sm-2.col-sm-pull-10 -->
93                         </div> <!-- /.row -->
94                     [% END %]
95
96             </main>
97         </div> <!-- /.col-sm-12 -->
98     </div> <!-- /.row -->
99
100 [% MACRO jsinclude BLOCK %]
101     [% INCLUDE 'datatables.inc' %]
102     <script>
103         $(document).ready(function(){
104             if ( $("#pending_onsite_checkout").length ) {
105                 $("#pending_onsite_checkout").dataTable($.extend(true, {}, dataTablesDefaults));
106             }
107         });
108     </script>
109 [% END %]
110
111 [% INCLUDE 'intranet-bottom.inc' %]