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