View | Details | Raw Unified | Return to bug 29240
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc (-13 / +6 lines)
Lines 58-80 Link Here
58
                });
58
                });
59
        },
59
        },
60
        onClose: function( selectedDates, dateText, instance) {
60
        onClose: function( selectedDates, dateText, instance) {
61
            validate_date( selectedDates, instance );
61
            validate_date( dateText, instance );
62
            var thisInput = instance.input;
63
            if ( thisInput.hasAttribute('data-start_for') ) {
64
                var endPicker = document.querySelector("#"+thisInput.dataset.start_for)._flatpickr;
65
                endPicker.set('minDate', selectedDates[0]);
66
            }
62
        },
67
        },
63
    });
68
    });
64
    $(document).ready(function(){
69
    $(document).ready(function(){
65
        $(".flatpickr").flatpickr();
70
        $(".flatpickr").flatpickr();
66
        var startPicker = $(".flatpickrfrom").flatpickr({
67
            onClose: function( selectedDates, dateText, instance) {
68
                validate_date( selectedDates, instance );
69
                endPicker.set('minDate', selectedDates[0]);
70
            }
71
        });
72
        var endPicker = $(".flatpickrto").flatpickr({
73
            onClose: function( selectedDates, dateText, instance) {
74
                validate_date( selectedDates, instance );
75
            },
76
        });
77
78
    });
71
    });
79
</script>
72
</script>
80
[% END %]
73
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/filter-orders.inc (-2 / +2 lines)
Lines 103-113 Link Here
103
    </li>
103
    </li>
104
104
105
    <li><label for="from">From: </label>
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" />
106
        <input type="text" size="10" id="from" name="from" value="[% filters.from_placed_on | $KohaDates %]" class="flatpickr" data-start_for="to" />
107
        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
107
        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
108
    </li>
108
    </li>
109
    <li><label for="to">To: </label>
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" />
110
        <input type="text" size="10" id="to" name="to" value="[% filters.to_placed_on | $KohaDates %]" class="flatpickr" />
111
        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
111
        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
112
    </li>
112
    </li>
113
</ol>
113
</ol>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt (-26 / +4 lines)
Lines 297-308 Link Here
297
              <ol>
297
              <ol>
298
                <li>
298
                <li>
299
                  <label for="shipmentdatefrom">From:</label>
299
                  <label for="shipmentdatefrom">From:</label>
300
                  <input type="text" id="shipmentdatefrom" name="shipmentdatefrom" size="10" value="[% shipmentdatefrom | $KohaDates %]" />
300
                  <input type="text" id="shipmentdatefrom" name="shipmentdatefrom" size="10" value="[% shipmentdatefrom | $KohaDates %]" class="flatpickr" data-start_for="shipmentdateto" />
301
                  <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
301
                  <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
302
                </li>
302
                </li>
303
                <li>
303
                <li>
304
                  <label for="shipmentdateto">To:</label>
304
                  <label for="shipmentdateto">To:</label>
305
                  <input type="text" id="shipmentdateto" name="shipmentdateto" size="10" value="[% shipmentdateto | $KohaDates %]" />
305
                  <input type="text" id="shipmentdateto" name="shipmentdateto" size="10" value="[% shipmentdateto | $KohaDates %]" class="flatpickr" />
306
                  <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
306
                  <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
307
                </li>
307
                </li>
308
              </ol>
308
              </ol>
Lines 314-325 Link Here
314
              <ol>
314
              <ol>
315
                <li>
315
                <li>
316
                  <label for="billingdatefrom">From:</label>
316
                  <label for="billingdatefrom">From:</label>
317
                  <input type="text" id="billingdatefrom" name="billingdatefrom" size="10" value="[% billingdatefrom | $KohaDates %]" />
317
                  <input type="text" id="billingdatefrom" name="billingdatefrom" size="10" value="[% billingdatefrom | $KohaDates %]" class="flatpickr" data-start_for="billingdateto" />
318
                  <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
318
                  <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
319
                </li>
319
                </li>
320
                <li>
320
                <li>
321
                  <label for="billingdateto">To:</label>
321
                  <label for="billingdateto">To:</label>
322
                  <input type="text" id="billingdateto" name="billingdateto" size="10" value="[% billingdateto | $KohaDates %]" />
322
                  <input type="text" id="billingdateto" name="billingdateto" size="10" value="[% billingdateto | $KohaDates %]" class="flatpickr" />
323
                  <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
323
                  <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
324
                </li>
324
                </li>
325
              </ol>
325
              </ol>
Lines 459-486 Link Here
459
                    $('#merge_invoices').show();
459
                    $('#merge_invoices').show();
460
                }
460
                }
461
            });
461
            });
462
            var shipmentdatefrom = $("#shipmentdatefrom").flatpickr({
463
                onClose: function( selectedDates, dateText, instance) {
464
                    validate_date( selectedDates, instance );
465
                    shipmentdateto.set('minDate', selectedDates[0]);
466
                }
467
            });
468
            var shipmentdateto = $("#shipmentdateto").flatpickr({
469
                onClose: function( selectedDates, dateText, instance) {
470
                    validate_date( selectedDates, instance );
471
                },
472
            });
473
            var billingdatefrom = $("#billingdatefrom").flatpickr({
474
                onClose: function( selectedDates, dateText, instance) {
475
                    validate_date( selectedDates, instance );
476
                    billingdateto.set('minDate', selectedDates[0]);
477
                }
478
            });
479
            var billingdateto = $("#billingdateto").flatpickr({
480
                onClose: function( selectedDates, dateText, instance) {
481
                    validate_date( selectedDates, instance );
482
                },
483
            });
484
        });
462
        });
485
    </script>
463
    </script>
486
[% END %]
464
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt (-2 / +2 lines)
Lines 232-242 Link Here
232
<ol>
232
<ol>
233
    <li><label for="delay">Order date:</label><input size="3" maxlength="3" id="delay" type="text" name="delay" value="[% delay | html %]" /> days ago</li>
233
    <li><label for="delay">Order date:</label><input size="3" maxlength="3" id="delay" type="text" name="delay" value="[% delay | html %]" /> days ago</li>
234
    <li><label for="from">Estimated delivery date from: </label>
234
    <li><label for="from">Estimated delivery date from: </label>
235
        <input type="text" size="10" id="from" name="estimateddeliverydatefrom" value="[% estimateddeliverydatefrom | html %]" class="flatpickrfrom" />
235
        <input type="text" size="10" id="from" name="estimateddeliverydatefrom" value="[% estimateddeliverydatefrom | html %]" class="flatpickr" data-start_for="to"/>
236
        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
236
        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
237
    </li>
237
    </li>
238
    <li><label for="to">To: </label>
238
    <li><label for="to">To: </label>
239
        <input type="text" size="10" id="to" name="estimateddeliverydateto" value="[% estimateddeliverydateto | html %]" class="flatpickrto" />
239
        <input type="text" size="10" id="to" name="estimateddeliverydateto" value="[% estimateddeliverydateto | html %]" class="flatpickr" />
240
        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
240
        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
241
    </li>
241
    </li>
242
242
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt (-4 / +4 lines)
Lines 189-202 Link Here
189
189
190
    <li>
190
    <li>
191
    <label class="required" for="from">Start date: </label>
191
    <label class="required" for="from">Start date: </label>
192
    <input type="text" size="10" id="from" name="budget_period_startdate" value="[% budget_period_startdate | $KohaDates %]" class="flatpickrfrom" />
192
    <input type="text" size="10" id="from" name="budget_period_startdate" value="[% budget_period_startdate | $KohaDates %]" class="flatpickr" data-start_for="to" />
193
        <span class="required">Required</span>
193
        <span class="required">Required</span>
194
        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
194
        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
195
    </li>
195
    </li>
196
    <li>
196
    <li>
197
197
198
    <label class="required" for="to">End date: </label>
198
    <label class="required" for="to">End date: </label>
199
    <input type="text" size="10" id="to" name="budget_period_enddate" value="[% budget_period_enddate | $KohaDates %]" class="flatpickrto" />
199
    <input type="text" size="10" id="to" name="budget_period_enddate" value="[% budget_period_enddate | $KohaDates %]" class="flatpickr" />
200
        <span class="required">Required</span>
200
        <span class="required">Required</span>
201
        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
201
        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
202
    </li>
202
    </li>
Lines 259-272 Link Here
259
    <ol>
259
    <ol>
260
    <li>
260
    <li>
261
    <label class="required" for="from">Start date: </label>
261
    <label class="required" for="from">Start date: </label>
262
    <input type="text" size="10" id="from" name="budget_period_startdate" value="[% budget_period_startdate | $KohaDates %]" class="flatpickrfrom" />
262
    <input type="text" size="10" id="from" name="budget_period_startdate" value="[% budget_period_startdate | $KohaDates %]" class="flatpickr" data-start_for="to" />
263
        <span class="required">Required</span>
263
        <span class="required">Required</span>
264
        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
264
        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
265
    </li>
265
    </li>
266
    <li>
266
    <li>
267
267
268
    <label class="required" for="to">End date: </label>
268
    <label class="required" for="to">End date: </label>
269
    <input type="text" size="10" id="to" name="budget_period_enddate" value="[% budget_period_enddate | $KohaDates %]" class="flatpickrto" />
269
    <input type="text" size="10" id="to" name="budget_period_enddate" value="[% budget_period_enddate | $KohaDates %]" class="flatpickr" />
270
        <span class="required">Required</span>
270
        <span class="required">Required</span>
271
        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
271
        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
272
    </li>
272
    </li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqcontract.tt (-2 / +2 lines)
Lines 132-143 Link Here
132
                                        <input type="text" name="contractdescription" id="contractdescription" size="40" maxlength="80" value="[% contractdescription | html %]" />
132
                                        <input type="text" name="contractdescription" id="contractdescription" size="40" maxlength="80" value="[% contractdescription | html %]" />
133
                                </li>
133
                                </li>
134
                                <li><label for="from" class="required">Start date:</label> &nbsp;
134
                                <li><label for="from" class="required">Start date:</label> &nbsp;
135
                                        <input type="text" name="contractstartdate" id="from" value="[% contractstartdate | $KohaDates %]" maxlength="10" size="10" class="flatpickrfrom" />
135
                                        <input type="text" name="contractstartdate" id="from" value="[% contractstartdate | $KohaDates %]" maxlength="10" size="10" class="flatpickr" data-start_for="to" />
136
                                        <span class="required">Required</span>
136
                                        <span class="required">Required</span>
137
                                    <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
137
                                    <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
138
                                </li>
138
                                </li>
139
                                <li><label for="to" class="required">End date:</label> &nbsp;
139
                                <li><label for="to" class="required">End date:</label> &nbsp;
140
                                        <input type="text" name="contractenddate" id="to" value="[% contractenddate | $KohaDates %]" maxlength="10"  size="10" class="flatpickrto" />
140
                                        <input type="text" name="contractenddate" id="to" value="[% contractenddate | $KohaDates %]" maxlength="10"  size="10" class="flatpickr" />
141
                                        <span class="required">Required</span>
141
                                        <span class="required">Required</span>
142
                                    <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
142
                                    <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
143
                                </li>
143
                                </li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt (-2 / +2 lines)
Lines 156-166 Link Here
156
156
157
            <li class="date_due_filter">
157
            <li class="date_due_filter">
158
                <label for="from">From:</label>
158
                <label for="from">From:</label>
159
                <input type="text" id="from" name="dateduefrom" size="10" value="[% filters.dateduefrom | $KohaDates %]" class="flatpickrfrom" />
159
                <input type="text" id="from" name="dateduefrom" size="10" value="[% filters.dateduefrom | $KohaDates %]" class="flatpickr" data-start_for="to" />
160
            </li>
160
            </li>
161
            <li class="date_due_filter">
161
            <li class="date_due_filter">
162
                <label for="to">To:</label>
162
                <label for="to">To:</label>
163
                <input type="text" id="to" name="datedueto" size="10" value="[% filters.datedueto | $KohaDates %]" class="flatpickrto" />
163
                <input type="text" id="to" name="datedueto" size="10" value="[% filters.datedueto | $KohaDates %]" class="flatpickr" />
164
            </li>
164
            </li>
165
        </ol>
165
        </ol>
166
    </fieldset>
166
    </fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt (-2 / +2 lines)
Lines 271-282 Link Here
271
<label for="from">
271
<label for="from">
272
    Start date:
272
    Start date:
273
</label>
273
</label>
274
<input type="text" size="10" id="from" name="from" value="[% from | $KohaDates %]" class="flatpickrfrom" />
274
<input type="text" size="10" id="from" name="from" value="[% from | $KohaDates %]" class="flatpickr" data-start_for="to" />
275
</li>
275
</li>
276
<li><label for="to">
276
<li><label for="to">
277
    End date:
277
    End date:
278
</label>
278
</label>
279
<input type="text" size="10" id="to" name="to" value="[% to | $KohaDates %]" class="flatpickrto" />
279
<input type="text" size="10" id="to" name="to" value="[% to | $KohaDates %]" class="flatpickr" />
280
</li>
280
</li>
281
</ol>
281
</ol>
282
282
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/reserveratios.tt (-2 / +2 lines)
Lines 164-175 Link Here
164
164
165
    <li>
165
    <li>
166
        <label for="from">Start date:</label>
166
        <label for="from">Start date:</label>
167
        <input type="text" size="10" id="from" name="from" value="[% from | $KohaDates %]" class="flatpickrfrom" />
167
        <input type="text" size="10" id="from" name="from" value="[% from | $KohaDates %]" class="flatpickr" data-start_for="to" />
168
    </li>
168
    </li>
169
169
170
    <li>
170
    <li>
171
        <label for="to">End date:</label>
171
        <label for="to">End date:</label>
172
        <input size="10" id="to" name="to" value="[% to | $KohaDates %]" type="text" class="flatpickrto" />
172
        <input size="10" id="to" name="to" value="[% to | $KohaDates %]" type="text" class="flatpickr" />
173
    </li>
173
    </li>
174
</ol>
174
</ol>
175
(inclusive)
175
(inclusive)
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs-add-modify.tt (-2 / +2 lines)
Lines 73-84 Link Here
73
73
74
                        <li>
74
                        <li>
75
                            <label for="from">Start date:</label>
75
                            <label for="from">Start date:</label>
76
                            <input name="date_start" id="from" size="10" class="flatpickrfrom" value="[% club.date_start | $KohaDates %]">
76
                            <input name="date_start" id="from" size="10" class="flatpickr" data-start_for="to" value="[% club.date_start | $KohaDates %]">
77
                        </li>
77
                        </li>
78
78
79
                        <li>
79
                        <li>
80
                            <label for="to">End date:</label>
80
                            <label for="to">End date:</label>
81
                            <input name="date_end" id="to" size="10" class="flatpickrto" value="[% club.date_end | $KohaDates %]" >
81
                            <input name="date_end" id="to" size="10" class="flatpickr" value="[% club.date_end | $KohaDates %]" >
82
                        </li>
82
                        </li>
83
83
84
                        <li>
84
                        <li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt (-4 / +4 lines)
Lines 73-91 Link Here
73
                                </li>
73
                                </li>
74
                                <li>
74
                                <li>
75
                                    <label for="illfilter_dateplaced_start">Date placed between:</label>
75
                                    <label for="illfilter_dateplaced_start">Date placed between:</label>
76
                                    <input type="text" name="illfilter_dateplaced_start" id="illfilter_dateplaced_start" />
76
                                    <input type="text" name="illfilter_dateplaced_start" id="illfilter_dateplaced_start" class="flatpickr" data-start_for="illfilter_dateplaced_end"/>
77
                                </li>
77
                                </li>
78
                                <li>
78
                                <li>
79
                                    <label for="illfilter_dateplaced_end">and:</label>
79
                                    <label for="illfilter_dateplaced_end">and:</label>
80
                                    <input type="text" name="illfilter_dateplaced_end" id="illfilter_dateplaced_end" />
80
                                    <input type="text" name="illfilter_dateplaced_end" id="illfilter_dateplaced_end" class="flatpickr" />
81
                                </li>
81
                                </li>
82
                                <li>
82
                                <li>
83
                                    <label for="illfilter_datemodified_start">Updated between:</label>
83
                                    <label for="illfilter_datemodified_start">Updated between:</label>
84
                                    <input type="text" name="illfilter_datemodified_start" id="illfilter_datemodified_start" />
84
                                    <input type="text" name="illfilter_datemodified_start" id="illfilter_datemodified_start" class="flatpickr" data-start_for="illfilter_datemodified_end" />
85
                                </li>
85
                                </li>
86
                                <li>
86
                                <li>
87
                                    <label for="illfilter_datemodified_end">and:</label>
87
                                    <label for="illfilter_datemodified_end">and:</label>
88
                                    <input type="text" name="illfilter_datemodified_end" id="illfilter_datemodified_end" />
88
                                    <input type="text" name="illfilter_datemodified_end" id="illfilter_datemodified_end" class="flatpickr" />
89
                                </li>
89
                                </li>
90
                                <li>
90
                                <li>
91
                                    <label for="illfilter_branchname">Library:</label>
91
                                    <label for="illfilter_branchname">Library:</label>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/search.tt (-2 / +2 lines)
Lines 90-101 to add to Batch [% batch_id | html %] Link Here
90
<ol>
90
<ol>
91
    <li>
91
    <li>
92
        <label for="from">Added on or after date: </label>
92
        <label for="from">Added on or after date: </label>
93
        <input type="text" size="10" id="from" name="datefrom" class="flatpickrfrom" value="" />
93
        <input type="text" size="10" id="from" name="datefrom" class="flatpickr" data-start_for="to" value="" />
94
        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
94
        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
95
    </li>
95
    </li>
96
    <li>
96
    <li>
97
        <label for="to">Added on or before date: </label>
97
        <label for="to">Added on or before date: </label>
98
        <input type="text" size="10" id="to" name="dateto" class="flatpickrto" value="" />
98
        <input type="text" size="10" id="to" name="dateto" class="flatpickr" value="" />
99
        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
99
        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
100
    </li>
100
    </li>
101
</ol>
101
</ol>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-3 / +3 lines)
Lines 1055-1061 legend:hover { Link Here
1055
                                                [% END %]
1055
                                                [% END %]
1056
                                                    Registration date:
1056
                                                    Registration date:
1057
                                                </label>
1057
                                                </label>
1058
                                                <input type="text" id="from" name="dateenrolled"  maxlength="10" size="10" value="[% dateenrolled | html %]" class="flatpickrfrom" />
1058
                                                <input type="text" id="from" name="dateenrolled"  maxlength="10" size="10" value="[% dateenrolled | html %]" class="flatpickr" data-start_for="to" />
1059
                                                [% IF ( mandatorydateenrolled ) %]
1059
                                                [% IF ( mandatorydateenrolled ) %]
1060
                                                    <span class="required">Required</span>
1060
                                                    <span class="required">Required</span>
1061
                                                [% END %]
1061
                                                [% END %]
Lines 1079-1087 legend:hover { Link Here
1079
                                                    Expiry date (leave blank for auto calc):
1079
                                                    Expiry date (leave blank for auto calc):
1080
                                                </label>
1080
                                                </label>
1081
                                                [% UNLESS ( opadd ) %]
1081
                                                [% UNLESS ( opadd ) %]
1082
                                                    <input type="text" id="to" name="dateexpiry" maxlength="10"  size="10" value="[% dateexpiry | html UNLESS opduplicate %]" class="flatpickrto" />
1082
                                                    <input type="text" id="to" name="dateexpiry" maxlength="10"  size="10" value="[% dateexpiry | html UNLESS opduplicate %]" class="flatpickr" />
1083
                                                [% ELSE %]
1083
                                                [% ELSE %]
1084
                                                    <input type="text" id="to" name="dateexpiry" maxlength="10"  size="10" value="[% dateexpiry | html %]" class="flatpickrto" />
1084
                                                    <input type="text" id="to" name="dateexpiry" maxlength="10"  size="10" value="[% dateexpiry | html %]" class="flatpickr" />
1085
                                                [% END %]
1085
                                                [% END %]
1086
                                                [% IF ( mandatorydateexpiry ) %]
1086
                                                [% IF ( mandatorydateexpiry ) %]
1087
                                                    <span class="required">Required</span>
1087
                                                    <span class="required">Required</span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt (-2 / +2 lines)
Lines 160-168 Link Here
160
                    <ol>
160
                    <ol>
161
                        <li>
161
                        <li>
162
                            <label for="trange_f">From: </label>
162
                            <label for="trange_f">From: </label>
163
                            <input type="text" size="10" id="from" class="flatpickrfrom" name="trange_f" value="[% trange_f | html %]"/>
163
                            <input type="text" size="10" id="from" class="flatpickr" data-start_for="to" name="trange_f" value="[% trange_f | html %]"/>
164
                            <label class="inline" for="trange_t">To: </label>
164
                            <label class="inline" for="trange_t">To: </label>
165
                            <input type="text" size="10" id="to" class="flatpickrto" name="trange_t" value="[% trange_t | html %]" />
165
                            <input type="text" size="10" id="to" class="flatpickr" name="trange_t" value="[% trange_t | html %]" />
166
                            <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
166
                            <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
167
                        </li>
167
                        </li>
168
                    </ol>
168
                    </ol>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/acquisitions_stats.tt (-31 / +4 lines)
Lines 120-128 Link Here
120
				<td><input type="radio" name="Line" value="aqbasket.closedate" /></td>
120
				<td><input type="radio" name="Line" value="aqbasket.closedate" /></td>
121
				<td><input type="radio" checked="checked" name="Column" value="aqbasket.closedate" /> </td>
121
				<td><input type="radio" checked="checked" name="Column" value="aqbasket.closedate" /> </td>
122
                <td>
122
                <td>
123
                    From <input type="text" size="10" id="placedonfrom" name="Filter" value="" />
123
                    From <input type="text" size="10" id="placedonfrom" name="Filter" value="" class="flatpickr" data-start_for="placedonto" />
124
                    <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
124
                    <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
125
                    To <input size="10" id="placedonto" name="Filter" type="text" value="" />
125
                    To <input size="10" id="placedonto" name="Filter" type="text" value="" class="flatpickr" />
126
                    <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
126
                    <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
127
                </td>
127
                </td>
128
			</tr>
128
			</tr>
Lines 143-151 Link Here
143
				<td><input type="radio" name="Line" value="aqorders.datereceived" /></td>
143
				<td><input type="radio" name="Line" value="aqorders.datereceived" /></td>
144
				<td><input type="radio" name="Column" value="aqorders.datereceived" /></td>
144
				<td><input type="radio" name="Column" value="aqorders.datereceived" /></td>
145
                <td>
145
                <td>
146
                    From <input type="text" size="10" id="receivedonfrom" name="Filter" value="" />
146
                    From <input type="text" size="10" id="receivedonfrom" name="Filter" value="" class="flatpickr" data-start_for="receivedonto" />
147
                    <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
147
                    <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
148
                    To <input type="text" size="10" id="receivedonto" name="Filter" value="" />
148
                    To <input type="text" size="10" id="receivedonto" name="Filter" value="" class="flatpickr" />
149
                    <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
149
                    <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
150
                </td>
150
                </td>
151
			</tr>
151
			</tr>
Lines 339-371 Link Here
339
339
340
[% MACRO jsinclude BLOCK %]
340
[% MACRO jsinclude BLOCK %]
341
    [% INCLUDE 'calendar.inc' %]
341
    [% INCLUDE 'calendar.inc' %]
342
    <script>
343
        $(document).ready(function() {
344
            var placedonfrom = $("#placedonfrom").flatpickr({
345
                onClose: function( selectedDates, dateText, instance) {
346
                    validate_date( selectedDates, instance );
347
                    placedonto.set('minDate', selectedDates[0]);
348
                }
349
            });
350
            var placedonto = $("#placedonto").flatpickr({
351
                onClose: function( selectedDates, dateText, instance) {
352
                    validate_date( selectedDates, instance );
353
                },
354
            });
355
356
            var receivedonfrom = $("#receivedonfrom").flatpickr({
357
                onClose: function( selectedDates, dateText, instance) {
358
                    validate_date( selectedDates, instance );
359
                    receivedonto.set('minDate', selectedDates[0]);
360
                }
361
            });
362
            var receivedonto = $("#receivedonto").flatpickr({
363
                onClose: function( selectedDates, dateText, instance) {
364
                    validate_date( selectedDates, instance );
365
                },
366
            });
367
        });
368
    </script>
369
[% END %]
342
[% END %]
370
343
371
[% INCLUDE 'intranet-bottom.inc' %]
344
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/cash_register_stats.tt (-2 / +2 lines)
Lines 58-69 Link Here
58
                <br>
58
                <br>
59
                <li>
59
                <li>
60
                    <label for="from">From: </label>
60
                    <label for="from">From: </label>
61
                    <input type="text" size="10" id="from" name="from" value="[% beginDate | $KohaDates %]" class="flatpickrfrom" />
61
                    <input type="text" size="10" id="from" name="from" value="[% beginDate | $KohaDates %]" class="flatpickr" data-start_for="to" />
62
                    <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
62
                    <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
63
                </li>
63
                </li>
64
                <li>
64
                <li>
65
                    <label for="to">To: </label>
65
                    <label for="to">To: </label>
66
                    <input type="text" size="10" id="to" name="to" value="[% endDate | $KohaDates %]" class="flatpickrto" />
66
                    <input type="text" size="10" id="to" name="to" value="[% endDate | $KohaDates %]" class="flatpickr" />
67
                    <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
67
                    <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
68
                </li>
68
                </li>
69
69
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/dictionary.tt (-2 / +2 lines)
Lines 259-268 Link Here
259
    </li>
259
    </li>
260
    <li class="radio">
260
    <li class="radio">
261
        Start of date range
261
        Start of date range
262
        <input type="text" size="10" id="from" name="[% column.name | html %]_start_value" value="" class="flatpickrfrom" />
262
        <input type="text" size="10" id="from" name="[% column.name | html %]_start_value" value="" class="flatpickr" data-start_for="to" />
263
        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
263
        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
264
        End of date range
264
        End of date range
265
        <input type="text" size="10" id="to" name="[% column.name | html %]_end_value" value="" class="flatpickrto" />
265
        <input type="text" size="10" id="to" name="[% column.name | html %]_end_value" value="" class="flatpickr" />
266
        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
266
        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
267
    </li>
267
    </li>
268
[% END %]
268
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/issues_stats.tt (-2 / +2 lines)
Lines 128-136 Link Here
128
                <td><input type="radio" name="Column" value="datetime" /></td>
128
                <td><input type="radio" name="Column" value="datetime" /></td>
129
                <td>
129
                <td>
130
                    <label for="from">From</label>
130
                    <label for="from">From</label>
131
                    <input type="text" size="10" id="from" name="Filter" class="flatpickrfrom" />
131
                    <input type="text" size="10" id="from" name="Filter" class="flatpickr" data-start_for="to" />
132
                    <label for="to">To</label>
132
                    <label for="to">To</label>
133
                    <input size="10" id="to" name="Filter" value="" type="text" class="flatpickrto" />
133
                    <input size="10" id="to" name="Filter" value="" type="text" class="flatpickr" />
134
                    <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
134
                    <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
135
                </td>
135
                </td>
136
            </tr>
136
            </tr>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt (-2 / +2 lines)
Lines 93-101 Link Here
93
	<ol>
93
	<ol>
94
	<li>
94
	<li>
95
        <label for="from">From:</label>
95
        <label for="from">From:</label>
96
        <input type="text" name="begindate" id="from" value="[% begindate | html %]" size="10" maxlength="10" class="flatpickrfrom" />
96
        <input type="text" name="begindate" id="from" value="[% begindate | html %]" size="10" maxlength="10" class="flatpickr" data-start_for="to"/>
97
        <label for="to" style="float:none;">To:</label>
97
        <label for="to" style="float:none;">To:</label>
98
        <input type="text" name="enddate" id="to" value="[% enddate | html %]" size="10" maxlength="10" class="flatpickrto" />
98
        <input type="text" name="enddate" id="to" value="[% enddate | html %]" size="10" maxlength="10" class="flatpickr" />
99
        <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
99
        <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
100
        <input id="filterByDate" type="button" value="OK" />
100
        <input id="filterByDate" type="button" value="OK" />
101
        <a href="#" id="clearfilter"><i class="fa fa-remove"></i> Clear filter</a>
101
        <a href="#" id="clearfilter"><i class="fa fa-remove"></i> Clear filter</a>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt (-2 / +2 lines)
Lines 327-337 fieldset.rows table { clear: none; margin: 0; } Link Here
327
                                    </li>
327
                                    </li>
328
                                    <li>
328
                                    <li>
329
                                        <label for="from" class="required"> Subscription start date:</label>
329
                                        <label for="from" class="required"> Subscription start date:</label>
330
                                        <input type="text" size="10" id="from" name="startdate" value="[% startdate | $KohaDates %]" class="flatpickrfrom required" required="required" />
330
                                        <input type="text" size="10" id="from" name="startdate" value="[% startdate | $KohaDates %]" class="flatpickr required" data-start_for="to" required="required" />
331
                                    </li>
331
                                    </li>
332
                                    <li>
332
                                    <li>
333
                                        <label for="to">Subscription end date:</label>
333
                                        <label for="to">Subscription end date:</label>
334
                                        <input type="text" size="10" id="to" name="enddate" value="[% enddate | $KohaDates %]" class="flatpickrto" />
334
                                        <input type="text" size="10" id="to" name="enddate" value="[% enddate | $KohaDates %]" class="flatpickr" />
335
                                    </li>
335
                                    </li>
336
                                    <li>
336
                                    <li>
337
                                        <label for="numberpattern" class="required">Numbering pattern:</label>
337
                                        <label for="numberpattern" class="required">Numbering pattern:</label>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-history.tt (-2 / +2 lines)
Lines 41-54 Link Here
41
              <tr>
41
              <tr>
42
                <td>Subscription start date</td>
42
                <td>Subscription start date</td>
43
                <td>
43
                <td>
44
                    <input type="text" size="10" name="histstartdate" value="[% histstartdate | $KohaDates %]" class="flatpickrfrom" /> (start date of the 1st subscription)
44
                    <input type="text" size="10" name="histstartdate" value="[% histstartdate | $KohaDates %]" class="flatpickr" data-start_for="histenddate" /> (start date of the 1st subscription)
45
                    <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
45
                    <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
46
                </td>
46
                </td>
47
              </tr>
47
              </tr>
48
              <tr>
48
              <tr>
49
                <td>Subscription end date</td>
49
                <td>Subscription end date</td>
50
                <td>
50
                <td>
51
                    <input type="text" size="10" name="histenddate" value="[% histenddate | $KohaDates %]" class="flatpickrto" />(if empty, subscription is still active)
51
                    <input type="text" size="10" id="histenddate" name="histenddate" value="[% histenddate | $KohaDates %]" class="flatpickr" />(if empty, subscription is still active)
52
                    <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
52
                    <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
53
                </td>
53
                </td>
54
              </tr>
54
              </tr>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tags/review.tt (-2 / +2 lines)
Lines 230-240 tr > td input,td input[type="submit"] { font-size: 85%; padding: 1px; } Link Here
230
	    </li>
230
	    </li>
231
	    <li>
231
	    <li>
232
			<label for="from">Date: from </label>
232
			<label for="from">Date: from </label>
233
            <input type="text" size="10" id="from" name="from" value="[% filter_date_approved_from | html %]" class="flatpickrfrom" />
233
            <input type="text" size="10" id="from" name="from" value="[% filter_date_approved_from | html %]" class="flatpickr" data-start_for="to" />
234
			<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
234
			<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
235
235
236
			<label for="to">...to </label>
236
			<label for="to">...to </label>
237
            <input type="text" size="10" id="to" name="to" value="[% filter_date_approved_to | html %]" class="flatpickrto" />
237
            <input type="text" size="10" id="to" name="to" value="[% filter_date_approved_to | html %]" class="flatpickr" />
238
			<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
238
			<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
239
	    </li>
239
	    </li>
240
  </ol>
240
  </ol>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt (-2 / +2 lines)
Lines 210-221 Link Here
210
                [% END %]
210
                [% END %]
211
                <li>
211
                <li>
212
                    <label for="from">Publication date: </label>
212
                    <label for="from">Publication date: </label>
213
                    <input id="from" type="text" name="published_on" size="15" value="[% additional_content.published_on | html %]" class="flatpickrfrom" />
213
                    <input id="from" type="text" name="published_on" size="15" value="[% additional_content.published_on | html %]" class="flatpickr" data-start_for="to" />
214
                    <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
214
                    <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
215
                </li>
215
                </li>
216
                <li>
216
                <li>
217
                    <label for="to">Expiration date: </label>
217
                    <label for="to">Expiration date: </label>
218
                    <input id="to" type="text" name="expirationdate" size="15" value="[% additional_content.expirationdate | html %]" class="flatpickrto" />
218
                    <input id="to" type="text" name="expirationdate" size="15" value="[% additional_content.expirationdate | html %]" class="flatpickr" />
219
                    <div class="hint">
219
                    <div class="hint">
220
                        [% INCLUDE 'date-format.inc' %]
220
                        [% INCLUDE 'date-format.inc' %]
221
                        [% IF category == 'news' %]
221
                        [% IF category == 'news' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_extend_due_dates.tt (-2 / +2 lines)
Lines 82-93 Link Here
82
82
83
                                    <li>
83
                                    <li>
84
                                        <label for="from_due_date">Due date from: </label>
84
                                        <label for="from_due_date">Due date from: </label>
85
                                        <input type="text" size="10" id="from" name="from_due_date" class="flatpickrfrom" />
85
                                        <input type="text" size="10" id="from" name="from_due_date" class="flatpickr" data-start_for="to" />
86
                                    </li>
86
                                    </li>
87
87
88
                                    <li>
88
                                    <li>
89
                                        <label for="to_due_date">Due date to:</label>
89
                                        <label for="to_due_date">Due date to:</label>
90
                                        <input type="text" size="10" id="to" name="to_due_date" class="flatpickrto" />
90
                                        <input type="text" size="10" id="to" name="to_due_date" class="flatpickr" />
91
                                    </li>
91
                                    </li>
92
                                </ol>
92
                                </ol>
93
                            </fieldset>
93
                            </fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt (-2 / +2 lines)
Lines 110-120 Link Here
110
        <ol>
110
        <ol>
111
            <li>
111
            <li>
112
                    <label for="from">Start date:</label>
112
                    <label for="from">Start date:</label>
113
                    <input type="text" size="10" id="from" name="start_accession" value="[% from | html %]" class="flatpickrfrom" />
113
                    <input type="text" size="10" id="from" name="start_accession" value="[% from | html %]" class="flatpickr" data-start_for="to" />
114
            </li>
114
            </li>
115
            <li>
115
            <li>
116
                <label for="to">End date:</label>
116
                <label for="to">End date:</label>
117
                <input size="10" id="to" name="end_accession" value="[% end_accession | html %]" type="text" class="flatpickrto" />
117
                <input size="10" id="to" name="end_accession" value="[% end_accession | html %]" type="text" class="flatpickr" />
118
            </li>
118
            </li>
119
        </ol>
119
        </ol>
120
    </fieldset>
120
    </fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt (-2 / +2 lines)
Lines 273-283 Link Here
273
                                [% END %]
273
                                [% END %]
274
                            </li>
274
                            </li>
275
							<li>
275
							<li>
276
                                <label for="from"> Display from: </label> <input type="text" size="10" id="from" name="from" value="[% datefrom | html %]" class="flatpickrfrom" />
276
                                <label for="from"> Display from: </label> <input type="text" size="10" id="from" name="from" value="[% datefrom | html %]" class="flatpickr" data-start_for="to" />
277
				<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
277
				<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
278
							</li>
278
							</li>
279
							<li>
279
							<li>
280
                                <label for="to">Display to: </label> <input size="10" id="to" name="to" type="text" value="[% dateto | html %]" class="flatpickrto" />
280
                                <label for="to">Display to: </label> <input size="10" id="to" name="to" type="text" value="[% dateto | html %]" class="flatpickr" />
281
				<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
281
				<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
282
							</li>
282
							</li>
283
						</ol>
283
						</ol>
(-)a/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js (-27 lines)
Lines 335-366 $(document).ready(function() { Link Here
335
        $('#addcomment').toggleClass('content_hidden');
335
        $('#addcomment').toggleClass('content_hidden');
336
    });
336
    });
337
337
338
    var illfilter_dateplaced_start = $("#illfilter_dateplaced_start").flatpickr({
339
        onClose: function( selectedDates, dateText, instance) {
340
            validate_date( selectedDates, instance );
341
            illfilter_dateplaced_end.set('minDate', selectedDates[0]);
342
        }
343
    });
344
345
    var illfilter_dateplaced_end = $("#illfilter_dateplaced_end").flatpickr({
346
        onClose: function( selectedDates, dateText, instance) {
347
            validate_date( selectedDates, instance );
348
        },
349
    });
350
351
    var illfilter_datemodified_start = $("#illfilter_datemodified_start").flatpickr({
352
        onClose: function( selectedDates, dateText, instance) {
353
            validate_date( selectedDates, instance );
354
            illfilter_datemodified_end.set('minDate', selectedDates[0]);
355
        }
356
    });
357
358
    var illfilter_datemodified_end = $("#illfilter_datemodified_end").flatpickr({
359
        onClose: function( selectedDates, dateText, instance) {
360
            validate_date( selectedDates, instance );
361
        },
362
    });
363
364
    // Filter partner list
338
    // Filter partner list
365
    // Record the list of all options
339
    // Record the list of all options
366
    var ill_partner_options = $('#partners > option');
340
    var ill_partner_options = $('#partners > option');
367
- 

Return to bug 29240