Lines 123-163
Link Here
|
123 |
<td>Hold date</td> |
123 |
<td>Hold date</td> |
124 |
<td><input type="radio" name="Line" value="reservedate" /></td> |
124 |
<td><input type="radio" name="Line" value="reservedate" /></td> |
125 |
<td><input type="radio" name="Column" value="reservedate" /></td> |
125 |
<td><input type="radio" name="Column" value="reservedate" /></td> |
126 |
<td><label for="filter_reservedate_begin">From</label> <input type="text" size="10" id="filter_reservedate_begin" name="filter_reservedate_begin" /> |
126 |
<td> |
127 |
<label for="filter_reservedate_end">To</label> <input size="10" id="filter_reservedate_end" name="filter_reservedate_end" value="" type="text" /> |
127 |
<label for="filter_reservedate_begin">From</label> |
128 |
</td> |
128 |
<input type="text" size="10" id="filter_reservedate_begin" name="filter_reservedate_begin" /> |
129 |
</tr> |
129 |
<label for="filter_reservedate_end">To</label> |
|
|
130 |
<input size="10" id="filter_reservedate_end" name="filter_reservedate_end" value="" type="text" /> |
131 |
</td> |
132 |
</tr> |
130 |
<tr> |
133 |
<tr> |
131 |
<td>Notification date</td> |
134 |
<td>Notification date</td> |
132 |
<td><input type="radio" name="Line" value="notificationdate" /></td> |
135 |
<td><input type="radio" name="Line" value="notificationdate" /></td> |
133 |
<td><input type="radio" name="Column" value="notificationdate" /></td> |
136 |
<td><input type="radio" name="Column" value="notificationdate" /></td> |
134 |
<td><label for="filter_notificationdate_begin">From</label> <input type="text" size="10" id="filter_notificationdate_begin" name="filter_notificationdate_begin" /> |
137 |
<td> |
135 |
<label for="filter_notificationdate_end">To</label> <input size="10" id="filter_notificationdate_end" name="filter_notificationdate_end" value="" type="text" /> |
138 |
<label for="filter_notificationdate_begin">From</label> |
136 |
</td> |
139 |
<input type="text" size="10" id="filter_notificationdate_begin" name="filter_notificationdate_begin" /> |
|
|
140 |
<label for="filter_notificationdate_end">To</label> |
141 |
<input size="10" id="filter_notificationdate_end" name="filter_notificationdate_end" value="" type="text" /> |
142 |
</td> |
137 |
</tr> |
143 |
</tr> |
138 |
<tr> |
144 |
<tr> |
139 |
<td>Reminder date</td> |
145 |
<td>Reminder date</td> |
140 |
<td><input type="radio" name="Line" value="reminderdate" /></td> |
146 |
<td><input type="radio" name="Line" value="reminderdate" /></td> |
141 |
<td><input type="radio" name="Column" value="reminderdate" /></td> |
147 |
<td><input type="radio" name="Column" value="reminderdate" /></td> |
142 |
<td><label for="filter_reminderdate_begin">From</label> <input type="text" size="10" id="filter_reminderdate_begin" name="Filter" /> |
148 |
<td> |
143 |
<label for="filter_reminderdate_end">To</label> <input size="10" id="filter_reminderdate_end" name="filter_reminderdate_end" value="" type="text" /> |
149 |
<label for="filter_reminderdate_begin">From</label> |
144 |
</td> |
150 |
<input type="text" size="10" id="filter_reminderdate_begin" name="Filter" /> |
|
|
151 |
<label for="filter_reminderdate_end">To</label> |
152 |
<input size="10" id="filter_reminderdate_end" name="filter_reminderdate_end" value="" type="text" /> |
153 |
</td> |
145 |
</tr> |
154 |
</tr> |
146 |
<tr> |
155 |
<tr> |
147 |
<td>Waiting date</td> |
156 |
<td>Waiting date</td> |
148 |
<td><input type="radio" name="Line" value="waitingdate" /></td> |
157 |
<td><input type="radio" name="Line" value="waitingdate" /></td> |
149 |
<td><input type="radio" name="Column" value="waitingdate" /></td> |
158 |
<td><input type="radio" name="Column" value="waitingdate" /></td> |
150 |
<td><label for="filter_waitingdate_begin">From</label> <input type="text" size="10" id="filter_waitingdate_begin" name="filter_waitingdate_begin" /> |
159 |
<td> |
151 |
<label for="filter_waitingdate_end">To</label> <input size="10" id="filter_waitingdate_end" name="filter_waitingdate_end" value="" type="text" /> |
160 |
<label for="filter_waitingdate_begin">From</label> |
152 |
</td> |
161 |
<input type="text" size="10" id="filter_waitingdate_begin" name="filter_waitingdate_begin" /> |
|
|
162 |
<label for="filter_waitingdate_end">To</label> |
163 |
<input size="10" id="filter_waitingdate_end" name="filter_waitingdate_end" value="" type="text" /> |
164 |
</td> |
153 |
</tr> |
165 |
</tr> |
154 |
<tr> |
166 |
<tr> |
155 |
<td>Cancellation date</td> |
167 |
<td>Cancellation date</td> |
156 |
<td><input type="radio" name="Line" value="cancellationdate" /></td> |
168 |
<td><input type="radio" name="Line" value="cancellationdate" /></td> |
157 |
<td><input type="radio" name="Column" value="cancellationdate" /></td> |
169 |
<td><input type="radio" name="Column" value="cancellationdate" /></td> |
158 |
<td><label for="filter_cancellationdate_begin">From</label> <input type="text" size="10" id="filter_cancellationdate_begin" name="filter_cancellationdate_begin" /> |
170 |
<td> |
159 |
<label for="filter_cancellationdate_end">To</label> <input size="10" id="filter_cancellationdate_end" name="filter_cancellationdate_end" value="" type="text" /> |
171 |
<label for="filter_cancellationdate_begin">From</label> |
160 |
</td> |
172 |
<input type="text" size="10" id="filter_cancellationdate_begin" name="filter_cancellationdate_begin" /> |
|
|
173 |
<label for="filter_cancellationdate_end">To</label> |
174 |
<input size="10" id="filter_cancellationdate_end" name="filter_cancellationdate_end" value="" type="text" /> |
175 |
</td> |
161 |
</tr> |
176 |
</tr> |
162 |
<tr> |
177 |
<tr> |
163 |
<td>Patron category</td> |
178 |
<td>Patron category</td> |
Lines 325-396
Link Here
|
325 |
[% INCLUDE 'calendar.inc' %] |
340 |
[% INCLUDE 'calendar.inc' %] |
326 |
<script> |
341 |
<script> |
327 |
$(document).ready(function() { |
342 |
$(document).ready(function() { |
328 |
// http://jqueryui.com/demos/datepicker/#date-range |
343 |
var filter_reservedate_begin = $("#filter_reservedate_begin").flatpickr({ |
329 |
var dates = $( "#filter_reservedate_begin, #filter_reservedate_end" ).datepicker({ |
344 |
onClose: function( selectedDates, dateText, instance) { |
330 |
changeMonth: true, |
345 |
validate_date( selectedDates, instance ); |
331 |
numberOfMonths: 1, |
346 |
filter_reservedate_end.set('minDate', selectedDates[0]); |
332 |
onSelect: function( selectedDate ) { |
|
|
333 |
var option = this.id == "filter_reservedate_begin" ? "minDate" : "maxDate", |
334 |
instance = $( this ).data( "datepicker" ); |
335 |
date = $.datepicker.parseDate( |
336 |
instance.settings.dateFormat || |
337 |
$.datepicker._defaults.dateFormat, |
338 |
selectedDate, instance.settings ); |
339 |
dates.not( this ).datepicker( "option", option, date ); |
340 |
} |
347 |
} |
341 |
}); |
348 |
}); |
342 |
var datesND = $( "#filter_notificationdate_begin, #filter_notificationdate_end" ).datepicker({ |
349 |
var filter_reservedate_end = $("#filter_reservedate_end").flatpickr({ |
343 |
changeMonth: true, |
350 |
onClose: function( selectedDates, dateText, instance) { |
344 |
numberOfMonths: 1, |
351 |
validate_date( selectedDates, instance ); |
345 |
onSelect: function( selectedDate ) { |
352 |
}, |
346 |
var option = this.id == "filter_notificationdate_begin" ? "minDate" : "maxDate", |
353 |
}); |
347 |
instance = $( this ).data( "datepicker" ); |
354 |
|
348 |
date = $.datepicker.parseDate( |
355 |
var filter_notificationdate_begin = $("#filter_notificationdate_begin").flatpickr({ |
349 |
instance.settings.dateFormat || |
356 |
onClose: function( selectedDates, dateText, instance) { |
350 |
$.datepicker._defaults.dateFormat, |
357 |
validate_date( selectedDates, instance ); |
351 |
selectedDate, instance.settings ); |
358 |
filter_notificationdate_end.set('minDate', selectedDates[0]); |
352 |
datesND.not( this ).datepicker( "option", option, date ); |
|
|
353 |
} |
359 |
} |
354 |
}); |
360 |
}); |
355 |
var datesRD = $( "#filter_reminderdate_begin, #filter_reminderdate_end" ).datepicker({ |
361 |
var filter_notificationdate_end = $("#filter_notificationdate_end").flatpickr({ |
356 |
changeMonth: true, |
362 |
onClose: function( selectedDates, dateText, instance) { |
357 |
numberOfMonths: 1, |
363 |
validate_date( selectedDates, instance ); |
358 |
onSelect: function( selectedDate ) { |
364 |
}, |
359 |
var option = this.id == "filter_reminderdate_begin" ? "minDate" : "maxDate", |
365 |
}); |
360 |
instance = $( this ).data( "datepicker" ); |
366 |
|
361 |
date = $.datepicker.parseDate( |
367 |
var filter_reminderdate_begin = $("#filter_reminderdate_begin").flatpickr({ |
362 |
instance.settings.dateFormat || |
368 |
onClose: function( selectedDates, dateText, instance) { |
363 |
$.datepicker._defaults.dateFormat, |
369 |
validate_date( selectedDates, instance ); |
364 |
selectedDate, instance.settings ); |
370 |
filter_reminderdate_end.set('minDate', selectedDates[0]); |
365 |
datesRD.not( this ).datepicker( "option", option, date ); |
|
|
366 |
} |
371 |
} |
367 |
}); |
372 |
}); |
368 |
var datesWD = $( "#filter_waitingdate_begin, #filter_waitingdate_end" ).datepicker({ |
373 |
var filter_reminderdate_end = $("#filter_reminderdate_end").flatpickr({ |
369 |
changeMonth: true, |
374 |
onClose: function( selectedDates, dateText, instance) { |
370 |
numberOfMonths: 1, |
375 |
validate_date( selectedDates, instance ); |
371 |
onSelect: function( selectedDate ) { |
376 |
}, |
372 |
var option = this.id == "filter_waitingdate_begin" ? "minDate" : "maxDate", |
377 |
}); |
373 |
instance = $( this ).data( "datepicker" ); |
378 |
|
374 |
date = $.datepicker.parseDate( |
379 |
var filter_waitingdate_begin = $("#filter_waitingdate_begin").flatpickr({ |
375 |
instance.settings.dateFormat || |
380 |
onClose: function( selectedDates, dateText, instance) { |
376 |
$.datepicker._defaults.dateFormat, |
381 |
validate_date( selectedDates, instance ); |
377 |
selectedDate, instance.settings ); |
382 |
filter_waitingdate_end.set('minDate', selectedDates[0]); |
378 |
datesWD.not( this ).datepicker( "option", option, date ); |
|
|
379 |
} |
383 |
} |
380 |
}); |
384 |
}); |
381 |
var datesCD = $( "#filter_cancellationdate_begin, #filter_cancellationdate_end" ).datepicker({ |
385 |
var filter_waitingdate_end = $("#filter_waitingdate_end").flatpickr({ |
382 |
changeMonth: true, |
386 |
onClose: function( selectedDates, dateText, instance) { |
383 |
numberOfMonths: 1, |
387 |
validate_date( selectedDates, instance ); |
384 |
onSelect: function( selectedDate ) { |
388 |
}, |
385 |
var option = this.id == "filter_cancellationdate_begin" ? "minDate" : "maxDate", |
389 |
}); |
386 |
instance = $( this ).data( "datepicker" ); |
390 |
|
387 |
date = $.datepicker.parseDate( |
391 |
var filter_cancellationdate_begin = $("#filter_cancellationdate_begin").flatpickr({ |
388 |
instance.settings.dateFormat || |
392 |
onClose: function( selectedDates, dateText, instance) { |
389 |
$.datepicker._defaults.dateFormat, |
393 |
validate_date( selectedDates, instance ); |
390 |
selectedDate, instance.settings ); |
394 |
filter_cancellationdate_end.set('minDate', selectedDates[0]); |
391 |
datesCD.not( this ).datepicker( "option", option, date ); |
|
|
392 |
} |
395 |
} |
393 |
}); |
396 |
}); |
|
|
397 |
var filter_cancellationdate_end = $("#filter_cancellationdate_end").flatpickr({ |
398 |
onClose: function( selectedDates, dateText, instance) { |
399 |
validate_date( selectedDates, instance ); |
400 |
}, |
401 |
}); |
394 |
}); |
402 |
}); |
395 |
</script> |
403 |
</script> |
396 |
[% END %] |
404 |
[% END %] |
397 |
- |
|
|