Bug 35600: Prevent checkouts table to flicker
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / checkouts-table.inc
1 [% USE Koha %]
2 [% PROCESS 'modal-claims.inc' %]
3 [% INCLUDE 'format_price.inc' %]
4
5 [% IF ( issuecount ) %]
6     <div id="issues-table-loading-message">
7         <p>
8             <a id="issues-table-load-now-button" href="#" class="btn btn-default"><i class="fa fa-book"></i> Show checkouts</a>
9             [% SET LoadCheckoutsTableDelay = Koha.Preference('LoadCheckoutsTableDelay') %]
10             [% IF LoadCheckoutsTableDelay && page == 'circulation' %]
11             <span id="issues-table-load-delay">
12                 <i id="issues-table-load-delay-spinner" class="fa fa-spinner fa-pulse fa-fw"></i>
13                 <span id="issues-table-load-delay-message">Checkouts table will show automatically in [% LoadCheckoutsTableDelay | html %] seconds...</span>
14             <span>
15             [% END %]
16         </p>
17     </div>
18     <form name="issues" action="/cgi-bin/koha/tools/export.pl" method="post">
19         <table id="issues-table" style="width: 100% !Important; display: none;">
20             <thead>
21                 <tr>
22                     <th scope="col">&nbsp;</th>
23                     <th scope="col">&nbsp;</th>
24                     <th scope="col">Due date</th>
25                     <th scope="col">Due date</th>
26                     <th scope="col">Title</th>
27                     <th scope="col">Record-level item type</th>
28                     <th scope="col">Item type</th>
29                     <th scope="col">Collection</th>
30                     <th scope="col">Location</th>
31                     <th scope="col">Home library</th>
32                     <th scope="col">&nbsp;</th>
33                     <th scope="col">Checked out on</th>
34                     <th scope="col">Checked out from</th>
35                     <th scope="col">Call number</th>
36                     <th scope="col">Copy number</th>
37                     <th scope="col">Charge</th>
38                     <th scope="col">Fine</th>
39                     <th scope="col">Price</th>
40                     <th scope="col">Renew <p class="column-tool"><a href="#" id="CheckAllRenewals">select all</a> | <a href="#" id="UncheckAllRenewals">none</a></p></th>
41                     <th scope="col">Check in <p class="column-tool"><a href="#" id="CheckAllCheckins">select all</a> | <a href="#" id="UncheckAllCheckins">none</a></p></th>
42                     <th scope="col">Return claims</th>
43                     <th scope="col">Export <p class="column-tool"><a href="#" id="CheckAllExports">select all</a> | <a href="#" id="UncheckAllExports">none</a></p></th>
44                 </tr>
45             </thead>
46             [% INCLUDE 'checkouts-table-footer.inc' %]
47         </table>
48
49         <label for="issues-table-load-immediately">Always show checkouts automatically</label>
50         <input id="issues-table-load-immediately" type="checkbox" />
51
52         <div id="issues-table-actions" style="display: none;">
53             <fieldset class="action">
54                 [% IF ( CAN_user_circulate_override_renewals ) %]
55                     [% IF Koha.Preference( 'AllowRenewalLimitOverride' ) || Koha.Preference( 'AllowRenewalOnHoldOverride' ) %]
56                         <label for="override_limit">Override renewal restrictions:</label>
57                         <input type="checkbox" name="override_limit" id="override_limit" value="1" />
58                     [% END %]
59                 [% END %]
60                 [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
61                     [% IF Koha.Preference( 'UnseenRenewals' ) %]
62                         <label id="renew_as_unseen_label" for="override_limit">Renew as &quot;unseen&quot; if appropriate:</label>
63                         <input type="checkbox" name="renew_as_unseen" id="renew_as_unseen_checkbox" value="1" />
64                     [% END %]
65                     <button class="btn btn-default" id="CheckinChecked" disabled="disabled"><i class="fa fa-download"></i> Check in selected items</button>
66                     <button class="btn btn-default" id="RenewChecked" disabled="disabled"><i class="fa fa-retweet"></i> Renew selected items</button>
67                     <button class="btn btn-default" id="RenewAll"><i class="fa fa-book"></i> Renew all</button>
68                 [% END %]
69             </fieldset>
70
71             [% IF Koha.Preference('ExportCircHistory') %]
72                 <fieldset>
73                     <label for="issues-table-output-format"><strong>Export checkouts using format:</strong></label>
74                     <select name="issues-table-output-format" id="issues-table-output-format">
75                         <option value="iso2709_995">MARC with items</option>
76                         <option value="iso2709">MARC without items</option>
77                         [% IF csv_profiles.count %]
78                             <option value="csv">CSV</option>
79                         [% END %]
80                     </select>
81
82                     [% IF csv_profiles.count %]
83                         <select name="csv_profile_id">
84                             [% FOREACH csv_profile IN csv_profiles %]
85                                 <option value="[% csv_profile.export_format_id | html %]">[% csv_profile.profile | html %]</option>
86                             [% END %]
87                         </select>
88                     [% END %]
89                     <label for="export_items_bundle_contents">Export items bundle contents</label> <input type="checkbox" name="export_items_bundle_contents" id="export_items_bundle_contents">
90                     <label for="export_remove_fields">Don't export fields:</label> <input type="text" id="export_remove_fields" name="export_remove_fields" value="[% Koha.Preference('ExportRemoveFields') | html %]" title="Use for MARC exports" />
91                     <input type="hidden" name="op" value="export" />
92                     <input type="hidden" id="output_format" name="output_format" value="iso2709" />
93                     <input type="hidden" id="dont_export_item" name="dont_export_item" value="0" />
94                     <input type="hidden" id="record_type" name="record_type" value="bibs" />
95                     <button class="btn btn-default btn-sm" id="export_submit"><i class="fa fa-download"></i> Export</button>
96                 </fieldset>
97             [% END %]
98         </div>
99     </form>
100 [% ELSE %]
101     <p>Patron has nothing checked out.</p>
102 [% END %]
103
104 <!-- Claims Returned Modal -->
105 [% PROCESS 'modal-claims-display' %]