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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt (-2 / +2 lines)
Lines 199-210 Link Here
199
                [% END %]
199
                [% END %]
200
                <li>
200
                <li>
201
                    <label for="from">Publication date: </label>
201
                    <label for="from">Publication date: </label>
202
                    <input id="from" type="text" name="published_on" size="15" value="[% additional_content.published_on | html %]" class="datepickerfrom" />
202
                    <input id="from" type="text" name="published_on" size="15" value="[% additional_content.published_on | html %]" class="flatpickrfrom" />
203
                    <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
203
                    <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
204
                </li>
204
                </li>
205
                <li>
205
                <li>
206
                    <label for="to">Expiration date: </label>
206
                    <label for="to">Expiration date: </label>
207
                    <input id="to" type="text" name="expirationdate" size="15" value="[% additional_content.expirationdate | html %]" class="datepickerto" />
207
                    <input id="to" type="text" name="expirationdate" size="15" value="[% additional_content.expirationdate | html %]" class="flatpickrto" />
208
                    <div class="hint">
208
                    <div class="hint">
209
                        [% INCLUDE 'date-format.inc' %]
209
                        [% INCLUDE 'date-format.inc' %]
210
                        [% IF category == 'news' %]
210
                        [% IF category == 'news' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_extend_due_dates.tt (-3 / +3 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="datepickerfrom" />
85
                                        <input type="text" size="10" id="from" name="from_due_date" class="flatpickrfrom" />
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="datepickerto" />
90
                                        <input type="text" size="10" id="to" name="to_due_date" class="flatpickrto" />
91
                                    </li>
91
                                    </li>
92
                                </ol>
92
                                </ol>
93
                            </fieldset>
93
                            </fieldset>
Lines 96-102 Link Here
96
                                <ol>
96
                                <ol>
97
                                    <li>
97
                                    <li>
98
                                        <label for="new_hard_due_date">Hard due date: </label>
98
                                        <label for="new_hard_due_date">Hard due date: </label>
99
                                        <input type="text" size="10" id="new_hard_due_date" name="new_hard_due_date" class="datepicker" />
99
                                        <input type="text" size="10" id="new_hard_due_date" name="new_hard_due_date" class="flatpickr" />
100
                                    </li>
100
                                    </li>
101
101
102
                                    <li>
102
                                    <li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/cleanborrowers.tt (-4 / +4 lines)
Lines 111-128 Link Here
111
        <ul>
111
        <ul>
112
                <li>
112
                <li>
113
                    <label for="date1">who have not borrowed since:</label>
113
                    <label for="date1">who have not borrowed since:</label>
114
                    <input size="10" id="date1" name="not_borrowed_since" type="text" class="datepicker" />
114
                    <input size="10" id="date1" name="not_borrowed_since" type="text" class="flatpickr" />
115
                    <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
115
                    <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
116
                </li>
116
                </li>
117
                <li>
117
                <li>
118
                    <label for="borrower_dateexpiry">whose expiration date is before:</label>
118
                    <label for="borrower_dateexpiry">whose expiration date is before:</label>
119
                    <input size="10" id="borrower_dateexpiry" name="borrower_dateexpiry" type="text" class="datepicker" />
119
                    <input size="10" id="borrower_dateexpiry" name="borrower_dateexpiry" type="text" class="flatpickr" />
120
                    <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
120
                    <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
121
                </li>
121
                </li>
122
                [% IF Koha.Preference('TrackLastPatronActivity') %]
122
                [% IF Koha.Preference('TrackLastPatronActivity') %]
123
                    <li>
123
                    <li>
124
                        <label for="borrower_lastseen">who have not been connected since:</label>
124
                        <label for="borrower_lastseen">who have not been connected since:</label>
125
                        <input size="10" id="borrower_lastseen" name="borrower_lastseen" type="text" class="datepicker" />
125
                        <input size="10" id="borrower_lastseen" name="borrower_lastseen" type="text" class="flatpickr" />
126
                        <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
126
                        <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
127
                    </li>
127
                    </li>
128
                [% END %]
128
                [% END %]
Lines 161-167 Link Here
161
        <ul>
161
        <ul>
162
            <li>
162
            <li>
163
                <label for="date2">Permanently delete checkout history older than</label>
163
                <label for="date2">Permanently delete checkout history older than</label>
164
                <input size="10" id="date2" name="last_issue_date" type="text" class="datepicker" />
164
                <input size="10" id="date2" name="last_issue_date" type="text" class="flatpickr" />
165
                <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
165
                <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
166
            </li>
166
            </li>
167
        </ul>
167
        </ul>
(-)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="datepickerfrom" />
113
                    <input type="text" size="10" id="from" name="start_accession" value="[% from | html %]" class="flatpickrfrom" />
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="datepickerto" />
117
                <input size="10" id="to" name="end_accession" value="[% end_accession | html %]" type="text" class="flatpickrto" />
118
            </li>
118
            </li>
119
        </ol>
119
        </ol>
120
    </fieldset>
120
    </fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/import_borrowers.tt (-1 / +1 lines)
Lines 409-415 you can supply dates in ISO format (e.g., '2010-10-28'). Link Here
409
    <script>
409
    <script>
410
        $(document).ready(function() {
410
        $(document).ready(function() {
411
            [%# Make date fields have the datepicker %]
411
            [%# Make date fields have the datepicker %]
412
            $("#dateenrolled, #dateexpiry, #dateofbirth").datepicker();
412
            $("#dateenrolled, #dateexpiry, #dateofbirth").flatpickr();
413
413
414
            $(".expand_defaults").click(function(e){
414
            $(".expand_defaults").click(function(e){
415
                e.preventDefault();
415
                e.preventDefault();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt (-1 / +1 lines)
Lines 84-90 Link Here
84
        <fieldset class="rows">
84
        <fieldset class="rows">
85
            <legend>Parameters</legend>
85
            <legend>Parameters</legend>
86
            <ol>
86
            <ol>
87
                <li><label for="setdate">Set inventory date to:</label> <input type="text" id="setdate" name="setdate" value="[% today | $KohaDates %]" class="datepicker" disabled /></li>
87
                <li><label for="setdate">Set inventory date to:</label> <input type="text" id="setdate" name="setdate" value="[% today | $KohaDates %]" class="flatpickr" /></li>
88
                <li><label for="compareinv2barcd">Compare barcodes list to results: </label><input type="checkbox" name="compareinv2barcd" id="compareinv2barcd" disabled /></li>
88
                <li><label for="compareinv2barcd">Compare barcodes list to results: </label><input type="checkbox" name="compareinv2barcd" id="compareinv2barcd" disabled /></li>
89
                <li><label for="dont_checkin">Do not check in items scanned during inventory: </label><input type="checkbox" name="dont_checkin" id="dont_checkin" disabled /></li>
89
                <li><label for="dont_checkin">Do not check in items scanned during inventory: </label><input type="checkbox" name="dont_checkin" id="dont_checkin" disabled /></li>
90
                <li><label for="out_of_order">Check barcodes list for items shelved out of order: </label><input type="checkbox" name="out_of_order" id="out_of_order" disabled /></li>
90
                <li><label for="out_of_order">Check barcodes list for items shelved out of order: </label><input type="checkbox" name="out_of_order" id="out_of_order" disabled /></li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt (-1 / +1 lines)
Lines 351-357 Link Here
351
                                                [% END %]
351
                                                [% END %]
352
                                            [% END %]
352
                                            [% END %]
353
                                            [% IF ( field.type == 'date' ) %]
353
                                            [% IF ( field.type == 'date' ) %]
354
                                                <input type="text" name="[% field.name | html %]" id="[% field.name | html %]" value="" size="10" maxlength="10" class="datepicker" />
354
                                                <input type="text" name="[% field.name | html %]" id="[% field.name | html %]" value="" size="10" maxlength="10" class="flatpickr" />
355
                                                <a href="#"  class="clear-date" id="clear-date-[% field.name | html %]" ><i class="fa fa-fw fa-trash"></i> Clear</a>
355
                                                <a href="#"  class="clear-date" id="clear-date-[% field.name | html %]" ><i class="fa fa-fw fa-trash"></i> Clear</a>
356
                                            [% END %]
356
                                            [% END %]
357
                                            [% IF field.mandatory %]
357
                                            [% IF field.mandatory %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/scheduler.tt (-8 / +5 lines)
Lines 44-52 Link Here
44
[% time | html %]</li>
44
[% time | html %]</li>
45
<li><label for="starttime">Time:</label>
45
<li><label for="starttime">Time:</label>
46
<input type="text" name="starttime" id="starttime" value="" maxlength="5" size="5" /></li>
46
<input type="text" name="starttime" id="starttime" value="" maxlength="5" size="5" /></li>
47
<li><label for="startdate">Date: </label> <input type="text" size="10" id="startdate" name="startdate" value="" />
47
    <li>
48
<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
48
        <label for="startdate">Date: </label>
49
</li>
49
        <input type="text" size="10" id="startdate" name="startdate" class="flatpickr futuredate" value="" />
50
        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
51
    </li>
50
<li><label for="report">Report:</label>
52
<li><label for="report">Report:</label>
51
<select name="report" id="report">
53
<select name="report" id="report">
52
[% FOREACH savedreport IN savedreports %]
54
[% FOREACH savedreport IN savedreports %]
Lines 109-119 Link Here
109
[% MACRO jsinclude BLOCK %]
111
[% MACRO jsinclude BLOCK %]
110
    [% Asset.js("js/tools-menu.js") | $raw %]
112
    [% Asset.js("js/tools-menu.js") | $raw %]
111
    [% INCLUDE 'calendar.inc' %]
113
    [% INCLUDE 'calendar.inc' %]
112
    <script>
113
        $(document).ready(function(){
114
            $("#startdate").datepicker({ minDate: "+0D" });
115
        });
116
    </script>
117
[% END %]
114
[% END %]
118
115
119
[% INCLUDE 'intranet-bottom.inc' %]
116
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt (-3 / +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="datepickerfrom" />
276
                                <label for="from"> Display from: </label> <input type="text" size="10" id="from" name="from" value="[% datefrom | html %]" class="flatpickrfrom" />
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="datepickerto" />
280
                                <label for="to">Display to: </label> <input size="10" id="to" name="to" type="text" value="[% dateto | html %]" class="flatpickrto" />
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>
284
- 

Return to bug 28961