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