Bug 21777: Fix circulation table alignment
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / checkouts-table.inc
1 [% USE Koha %]
2 <div id="checkouts">
3     [% IF ( issuecount ) %]
4         <div id="issues-table-loading-message">
5             <p>
6                 <a id="issues-table-load-now-button" href="#" class="btn btn-default"><i class="fa fa-book"></i> Show checkouts</a>
7             </p>
8         </div>
9         <form name="issues" action="/cgi-bin/koha/tools/export.pl" method="post" class="checkboxed">
10             <table id="issues-table" style="width: 100% !Important;">
11                 <thead>
12                     <tr>
13                         <th scope="col">&nbsp;</th>
14                         <th scope="col">&nbsp;</th>
15                         <th scope="col">Due date</th>
16                         <th scope="col">Due date</th>
17                         <th scope="col">Title</th>
18                         <th scope="col">Item type</th>
19                         <th scope="col">Collection</th>
20                         <th scope="col">Location</th>
21                         <th scope="col">Home library</th>
22                         <th scope="col">&nbsp;</th>
23                         <th scope="col">Checked out on</th>
24                         <th scope="col">Checked out from</th>
25                         <th scope="col">Call no</th>
26                         <th scope="col">Charge</th>
27                         <th scope="col">Fine</th>
28                         <th scope="col">Price</th>
29                         <th scope="col">Renew <p class="column-tool"><a href="#" id="CheckAllRenewals">select all</a> | <a href="#" id="UncheckAllRenewals">none</a></p></th>
30                         <th scope="col">Check in <p class="column-tool"><a href="#" id="CheckAllCheckins">select all</a> | <a href="#" id="UncheckAllCheckins">none</a></p></th>
31                         <th scope="col">Export <p class="column-tool"><a href="#" id="CheckAllExports">select all</a> | <a href="#" id="UncheckAllExports">none</a></p></th>
32                     </tr>
33                 </thead>
34                 [% INCLUDE 'checkouts-table-footer.inc' %]
35             </table>
36
37             <label for="issues-table-load-immediately">Always show checkouts immediately</label>
38             <input id="issues-table-load-immediately" type="checkbox" />
39
40             <div id="issues-table-actions">
41                 <fieldset class="action">
42                     [% IF ( CAN_user_circulate_override_renewals ) %]
43                         [% IF CAN_user_circulate_override_renewals && Koha.Preference( 'AllowRenewalLimitOverride' ) %]
44                             <label for="override_limit">Override renewal limit:</label>
45                             <input type="checkbox" name="override_limit" id="override_limit" value="1" />
46                         [% END %]
47                     [% END %]
48                     [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
49                         <button class="btn btn-default" id="RenewCheckinChecked"><i class="fa fa-check"></i> Renew or check in selected items</button>
50                         <button class="btn btn-default" id="RenewAll"><i class="fa fa-book"></i> Renew all</button>
51                     [% END %]
52                 </fieldset>
53
54                 [% IF Koha.Preference('ExportCircHistory') %]
55                     <fieldset>
56                         <label for="issues-table-output-format"><b>Export checkouts using format:</b></label>
57                         <select name="issues-table-output-format" id="issues-table-output-format">
58                             <option value="iso2709_995">MARC with items</option>
59                             <option value="iso2709">MARC without items</option>
60                             [% IF csv_profiles.size %]
61                                 <option value="csv">CSV</option>
62                             [% END %]
63                         </select>
64
65                         [% IF csv_profiles.size %]
66                             <select name="csv_profile_id">
67                                 [% FOREACH csv_profile IN csv_profiles %]
68                                     <option value="[% csv_profile.export_format_id | html %]">[% csv_profile.profile | html %]</option>
69                                 [% END %]
70                             </select>
71                         [% END %]
72                        <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" />
73                         <input type="hidden" name="op" value="export" />
74                         <input type="hidden" id="output_format" name="output_format" value="iso2709" />
75                         <input type="hidden" id="dont_export_item" name="dont_export_item" value="0" />
76                         <input type="hidden" id="record_type" name="record_type" value="bibs" />
77                         <button class="btn btn-default btn-sm" id="export_submit"><i class="fa fa-download"></i> Export</button>
78                     </fieldset>
79                 [% END %]
80             </div>
81         </form>
82     [% ELSE %]
83         <p>Patron has nothing checked out.</p>
84     [% END %]
85 </div>