Bug 19249: Fix date inputs on patron quick add form
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / member-search-box.inc
1 <!-- member-search-box.inc -->
2 [% USE Branches %]
3 [% USE Categories %]
4 [% USE Koha %]
5 [% PROCESS 'patronfields.inc' %]
6 [% IF CAN_user_borrowers_edit_borrowers %]
7     [% IF( bs_tab_active ) %]
8         <div id="patron_search" role="tabpanel" class="tab-pane active">
9     [% ELSE %]
10         <div id="patron_search" role="tabpanel" class="tab-pane">
11     [% END %]
12         <form method="post" action="/cgi-bin/koha/members/member.pl">
13             <input type="hidden" name="quicksearch" value="1" />
14
15             <div class="form-title">
16                 <label class="control-label">Search patrons</label>
17             </div>
18
19             <div class="form-content">
20                 [% IF ( Koha.Preference('RetainPatronsSearchTerms') ) %]
21                     <input name="searchmember" id="searchmember" class="head-searchbox form-control" type="text" placeholder="Enter patron card number or partial name" size="25" value="[% searchmember | html %]"/>
22                 [% ELSE %]
23                     <input name="searchmember" id="searchmember" class="head-searchbox form-control" type="text" placeholder="Enter patron card number or partial name" size="25"/>
24                 [% END %]
25
26                 <button type="button" class="form-extra-content-toggle"><i class="fa fa-sliders"></i></button>
27             </div>
28
29             <button type="submit"><i class="fa fa-arrow-right"></i></button>
30
31             <div class="form-extra-content">
32                 <div>
33                     [% INCLUDE patron_fields_dropdown search_box=1 %]
34                 </div>
35
36                 <div>
37                     <label for="searchtype" class="control-label">Search type</label>
38                     <select name="searchtype" id="searchtype" class="form-control">
39                         [% IF searchtype == 'start_with' %]
40                             <option value='start_with'>Starts with</option>
41                             <option value='contain'>Contains</option>
42                         [% ELSE %]
43                             <option value='start_with'>Starts with</option>
44                             <option value='contain'>Contains</option>
45                         [% END %]
46                     </select>
47                 </div>
48
49                 <div>
50                     [% SET branches = Branches.all( selected => branchcode_filter, only_from_group => 1 ) %]
51                     <label for="branchcode" class="control-label">Library</label>
52                     <select name="branchcode_filter" id="branchcode" class="form-control">
53                         [% IF branches.size != 1 %]
54                             <option value="">Any</option>
55                         [% END %]
56                         [% PROCESS options_for_libraries libraries => branches %]
57                     </select>
58                 </div>
59
60                 <div>
61                     [% SET categories = Categories.all() %]
62                     <label for="categorycode" class="control-label">Category</label>
63                     <select name="categorycode_filter" id="categorycode" class="form-control">
64                         <option value="">Any</option>
65                         [% FOREACH category IN categories %]
66                             [% IF category.categorycode == categorycode_filter %]
67                                 <option value="[% category.categorycode | html %]" selected="selected">[% category.description | html %]</option>
68                             [% ELSE %]
69                                 <option value="[% category.categorycode | html %]">[% category.description | html %]</option>
70                             [% END %]
71                         [% END %]
72                     </select>
73                 </div>
74             </div>
75         </form>
76     </div>
77 [% END %]
78 <!-- /member-search-box.inc -->