Bug 18789: Use Koha::Patron->is_adult where needed
[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">Location</th>
20                         <th scope="col">Home library</th>
21                         <th scope="col">Checked out on</th>
22                         <th scope="col">Checked out from</th>
23                         <th scope="col">Call no</th>
24                         <th scope="col">Charge</th>
25                         <th scope="col">Fine</th>
26                         <th scope="col">Price</th>
27                         <th scope="col">Renew <p class="column-tool"><a href="#" id="CheckAllRenewals">select all</a> | <a href="#" id="UncheckAllRenewals">none</a></p></th>
28                         <th scope="col">Check in <p class="column-tool"><a href="#" id="CheckAllCheckins">select all</a> | <a href="#" id="UncheckAllCheckins">none</a></p></th>
29                         <th scope="col">Export <p class="column-tool"><a href="#" id="CheckAllExports">select all</a> | <a href="#" id="UncheckAllExports">none</a></p></th>
30                     </tr>
31                 </thead>
32                 [% INCLUDE 'checkouts-table-footer.inc' %]
33             </table>
34
35             <label for="issues-table-load-immediately">Always show checkouts immediately</label>
36             <input id="issues-table-load-immediately" type="checkbox" />
37
38             <div id="issues-table-actions">
39                 <fieldset class="action">
40                     [% IF ( CAN_user_circulate_override_renewals ) %]
41                         [% IF CAN_user_circulate_override_renewals && Koha.Preference( 'AllowRenewalLimitOverride' ) %]
42                             <label for="override_limit">Override renewal limit:</label>
43                             <input type="checkbox" name="override_limit" id="override_limit" value="1" />
44                         [% END %]
45                     [% END %]
46                     [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
47                         <button class="btn btn-default" id="RenewCheckinChecked"><i class="fa fa-check"></i> Renew or check in selected items</button>
48                         <button class="btn btn-default" id="RenewAll"><i class="fa fa-book"></i> Renew all</button>
49                     [% END %]
50                 </fieldset>
51
52                 [% IF Koha.Preference('ExportCircHistory') %]
53                     <fieldset>
54                         <label for="issues-table-output-format"><b>Export checkouts using format:</b></label>
55                         <select name="issues-table-output-format" id="issues-table-output-format">
56                             <option value="iso2709_995">ISO2709 with items</option>
57                             <option value="iso2709">ISO2709 without items</option>
58                             [% IF csv_profiles.size %]
59                                 <option value="csv">CSV</option>
60                             [% END %]
61                         </select>
62
63                         [% IF csv_profiles.size %]
64                             <select name="csv_profile_id">
65                                 [% FOREACH csv_profile IN csv_profiles %]
66                                     <option value="[% csv_profile.export_format_id %]">[% csv_profile.profile %]</option>
67                                 [% END %]
68                             </select>
69                         [% END %]
70                        <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') %]" title="Use for iso2709 exports" />
71                         <input type="hidden" name="op" value="export" />
72                         <input type="hidden" id="output_format" name="output_format" value="iso2709" />
73                         <input type="hidden" id="dont_export_item" name="dont_export_item" value="0" />
74                         <input type="hidden" id="record_type" name="record_type" value="bibs" />
75                         <button class="btn btn-default btn-sm" id="export_submit"><i class="fa fa-download"></i> Export</button>
76                     </fieldset>
77                 [% END %]
78             </div>
79         </form>
80     [% ELSE %]
81         <p>Patron has nothing checked out.</p>
82     [% END %]
83 </div>