|
Lines 52-110
Link Here
|
| 52 |
<!-- Filters & Navigation --> |
52 |
<!-- Filters & Navigation --> |
| 53 |
<div class="col-md-2 order-sm-2 order-md-1"> |
53 |
<div class="col-md-2 order-sm-2 order-md-1"> |
| 54 |
<aside> |
54 |
<aside> |
| 55 |
<div id="filters"> |
55 |
<form id="bookingsf"> |
| 56 |
<form id="bookingsf"> |
56 |
<fieldset class="brief"> |
| 57 |
<fieldset class="brief"> |
57 |
<h4>Refine results</h4> |
| 58 |
<h4>Refine results</h4> |
58 |
<ol> |
| 59 |
<ol> |
59 |
<li> |
| 60 |
<li> |
60 |
<label for="holding_library">Holding library:</label> |
| 61 |
<label for="holding_library">Holding library:</label> |
61 |
<select name="holding_library" id="holding_library"> |
| 62 |
<select name="holding_library" id="holding_library"> |
62 |
[% SET libraries = Branches.all( only_from_group => 1 ) %] |
| 63 |
[% SET libraries = Branches.all( only_from_group => 1 ) %] |
63 |
[% IF libraries.size != 1 %] |
| 64 |
[% IF libraries.size != 1 %] |
64 |
<option value="">Any</option> |
| 65 |
<option value="">Any</option> |
65 |
[% END %] |
|
|
66 |
[% FOREACH l IN libraries %] |
| 67 |
[% IF (l.branchcode == branchcode) %] |
| 68 |
<option value="[% l.branchcode | html %]" selected="selected">[% l.branchname | html %]</option> |
| 69 |
[% ELSE %] |
| 70 |
<option value="[% l.branchcode | html %]">[% l.branchname | html %]</option> |
| 66 |
[% END %] |
71 |
[% END %] |
| 67 |
[% FOREACH l IN libraries %] |
72 |
[% END %] |
| 68 |
[% IF (l.branchcode == branchcode) %] |
73 |
</select> |
| 69 |
<option value="[% l.branchcode | html %]" selected="selected">[% l.branchname | html %]</option> |
74 |
</li> |
| 70 |
[% ELSE %] |
75 |
<li> |
| 71 |
<option value="[% l.branchcode | html %]">[% l.branchname | html %]</option> |
76 |
<label for="pickup_library">Pickup library:</label> |
| 72 |
[% END %] |
77 |
<select name="pickup_library" id="pickup_library"> |
|
|
78 |
[% SET libraries = Branches.all( only_from_group => 1 ) %] |
| 79 |
[% IF libraries.size != 1 %] |
| 80 |
<option value="">Any</option> |
| 81 |
[% END %] |
| 82 |
[% FOREACH l IN libraries %] |
| 83 |
[% IF (l.branchcode == branchcode) %] |
| 84 |
<option value="[% l.branchcode | html %]" selected="selected">[% l.branchname | html %]</option> |
| 85 |
[% ELSE %] |
| 86 |
<option value="[% l.branchcode | html %]">[% l.branchname | html %]</option> |
| 73 |
[% END %] |
87 |
[% END %] |
| 74 |
</select> |
88 |
[% END %] |
| 75 |
</li> |
89 |
</select> |
| 76 |
<li> |
90 |
</li> |
| 77 |
<label for="pickup_library">Pickup library:</label> |
91 |
<li> |
| 78 |
<select name="pickup_library" id="pickup_library"> |
92 |
<label for="from">Starts after: </label> |
| 79 |
[% SET libraries = Branches.all( only_from_group => 1 ) %] |
93 |
<input type="text" size="10" id="from" name="from" value="[% from | html %]" class="flatpickr" data-date_to="to"/> |
| 80 |
[% IF libraries.size != 1 %] |
94 |
</li> |
| 81 |
<option value="">Any</option> |
95 |
<li> |
| 82 |
[% END %] |
96 |
<label for="to">Starts before: </label> |
| 83 |
[% FOREACH l IN libraries %] |
97 |
<input type="text" size="10" id="to" name="to" value="[% to | html %]" class="flatpickr"/> |
| 84 |
[% IF (l.branchcode == branchcode) %] |
98 |
</li> |
| 85 |
<option value="[% l.branchcode | html %]" selected="selected">[% l.branchname | html %]</option> |
99 |
</ol> |
| 86 |
[% ELSE %] |
100 |
</fieldset> |
| 87 |
<option value="[% l.branchcode | html %]">[% l.branchname | html %]</option> |
101 |
<fieldset class="action"> |
| 88 |
[% END %] |
102 |
<input type="submit" name="run_report" value="Submit" class="btn btn-primary" /> |
| 89 |
[% END %] |
103 |
</fieldset> |
| 90 |
</select> |
104 |
</form> |
| 91 |
</li> |
|
|
| 92 |
<li> |
| 93 |
<label for="from">Starts after: </label> |
| 94 |
<input type="text" size="10" id="from" name="from" value="[% from | html %]" class="flatpickr" data-date_to="to"/> |
| 95 |
</li> |
| 96 |
<li> |
| 97 |
<label for="to">Starts before: </label> |
| 98 |
<input type="text" size="10" id="to" name="to" value="[% to | html %]" class="flatpickr"/> |
| 99 |
</li> |
| 100 |
</ol> |
| 101 |
|
105 |
|
| 102 |
<fieldset class="action"> |
|
|
| 103 |
<input type="submit" name="run_report" value="Submit" class="submit"/> |
| 104 |
</fieldset> |
| 105 |
</fieldset> |
| 106 |
</form> |
| 107 |
</div> |
| 108 |
[% INCLUDE 'circ-nav.inc' %] |
106 |
[% INCLUDE 'circ-nav.inc' %] |
| 109 |
</aside> |
107 |
</aside> |
| 110 |
</div> |
108 |
</div> |
| 111 |
- |
|
|