Bug 29477: Flatpickr - default to 23:59 for the time part
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / filter-orders.inc
1 [% USE Koha %]
2 [% USE Branches %]
3 [% USE KohaDates %]
4 [% PROCESS 'html_helpers.inc' %]
5 <ol>
6     <li><label for="title">Title: </label> <input type="text" name="title" id="title" value="[% filters.title | html %]" /></li>
7     <li><label for="author">Author: </label> <input type="text" name="author" id="author" value="[% filters.author | html %]" /></li>
8     <li><label for="isbn">ISBN: </label> <input type="text" name="isbn" id="isbn" value="[% filters.isbn | html %]" /></li>
9             [% IF Koha.Preference('marcflavour') == 'UNIMARC' %]
10     <li><label for="ean">EAN: </label> <input type="text" name="ean" id="ean" value="[% filters.ean | html %]" /></li>
11             [% END %]
12     <li><label for="name">Vendor: </label> <input type="text" name="name" id="name" value="[% filters.name | html %]" /></li>
13     <li><label for="basket">Basket: </label> <input type="text" name="basket" id="basket" value="[% filters.basket | html %]" /></li>
14     <li><label for="internalnote">Internal note: </label> <input type="text" name="internalnote" id="internalnote" value="[% filters.internalnote | html %]" /></li>
15     <li><label for="vendornote">Vendor note: </label> <input type="text" name="vendornote" id="vendornote" value="[% filters.vendornote | html %]" /></li>
16     <li><label for="basket_creators">Basket created by: </label>
17         <input autocomplete="off" id="find_patron" type="text" class="noEnterSubmit" />
18         <div>
19             <div id="basket_creators" style="float:left;"></div>
20         </div>
21     </li>
22     <li>
23         <label for="managing_library">Managing library: </label>
24         <select name="managing_library" id="managing_library">
25             <option value="">Any library</option>
26             [% PROCESS options_for_libraries libraries => Branches.all(selected => '') %]
27         </select>
28     </li>
29     <li><label for="booksellerinvoicenumber ">Vendor invoice number: </label> <input type="text" name="booksellerinvoicenumber" id="booksellerinvoicenumber" value="[% filters.booksellerinvoicenumber | html %]" /></li>
30     <li>
31         <label for="basketgroupname">Basket group:</label>
32         <input type="text" name="basketgroupname" id="basketgroupname" value="[% filters.basketgroupname | html %]" />
33     </li>
34         [% INCLUDE 'additional-fields-entry.inc' available=available_additional_fields values=additional_field_filters wrap_fieldset=0 %]
35     <li>
36       <label for="ordernumber">Order line:</label>
37       <input type="text" name="ordernumber" id="ordernumber" value="[% filters.ordernumber | html %]" />
38       [% IF filters.search_children_too %]
39         <input type="checkbox" name="search_children_too" id="search_children_too" value="1" checked="checked" />
40       [% ELSE %]
41         <input type="checkbox" name="search_children_too" id="search_children_too" value="1" />
42       [% END %]
43       <label class="yesno" for="search_children_too">Display children too.</label>
44     </li>
45
46     <li>
47         <label for="orderstatus">Order status: </label>
48         <select name="orderstatus" id="orderstatus">
49             [% IF filters.orderstatus == "" %]
50               <option value="">Any status except cancelled</option>
51             [% ELSE %]
52               <option value="" selected="selected"></option>
53             [% END %]
54             [% IF filters.orderstatus == "new" %]
55               <option value="new" selected="selected">New</option>
56             [% ELSE %]
57               <option value="new">New</option>
58             [% END %]
59             [% IF filters.orderstatus == "ordered" %]
60               <option value="ordered" selected="selected">Ordered</option>
61             [% ELSE %]
62               <option value="ordered">Ordered</option>
63             [% END %]
64             [% IF filters.orderstatus == "partial" %]
65               <option value="partial" selected="selected">Partially received</option>
66             [% ELSE %]
67               <option value="partial">Partially received</option>
68             [% END %]
69             [% IF filters.orderstatus == "complete" %]
70               <option value="complete" selected="selected">Received</option>
71             [% ELSE %]
72               <option value="complete">Received</option>
73             [% END %]
74             [% IF filters.orderstatus == "cancelled" %]
75               <option value="cancelled" selected="selected">Cancelled</option>
76             [% ELSE %]
77               <option value="cancelled">Cancelled</option>
78             [% END %]
79         </select>
80         [% IF filters.is_standing %]
81             <input type="checkbox" name="is_standing" id="is_standing" value="1" checked="checked" />
82         [% ELSE %]
83             <input type="checkbox" name="is_standing" id="is_standing" value="1" />
84         [% END %]
85          <label class="yesno" for="search_children_too">Standing order</label>
86     </li>
87     <li>
88         <label for="fund">Fund: </label>
89         <select name="budget" id="fund">
90             <option value="">All funds</option>
91             [% FOREACH bp_loo IN bp_loop %]
92                 <optgroup label="[% bp_loo.budget_period_description | html %]">
93                 [% FOREACH h_loo IN bp_loo.hierarchy %]
94                   [% IF h_loo.budget_id == filters.budget %]
95                     <option type="text" value="[% h_loo.budget_id | html %]" branchcode="[% h_loo.budget_branchcode | html %]" selected="selected">
96                   [% ELSE %]
97                     <option type="text" value="[% h_loo.budget_id | html %]" branchcode="[% h_loo.budget_branchcode | html %]">
98                   [% END %]
99                         [% h_loo.budget_display_name | html %]
100                     </option>
101                 [% END %]
102                 </optgroup>
103             [% END %]
104         </select>
105     </li>
106
107     <li><label for="from">From: </label>
108         <input type="text" size="10" id="from" name="from" value="[% filters.from_placed_on | $KohaDates %]" class="flatpickr" data-date_to="to" />
109         <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
110     </li>
111     <li><label for="to">To: </label>
112         <input type="text" size="10" id="to" name="to" value="[% filters.to_placed_on | $KohaDates %]" class="flatpickr" />
113         <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
114     </li>
115 </ol>