js.py 984 Bytes
Newer Older
1 2 3
DateAndTimeInput = """
        $(function () {
            $('.dateinput').datetimepicker({
4
                useCurrent: false,
5 6 7 8
                format: 'DD/MM/YYYY',
                maxDate: Date.now(),
                showTodayButton: true,
                showClear: true,
9
                showClose: true
10 11
            });
            $('.timeinput').datetimepicker({
12 13
                useCurrent: false,
                defaultDate:false,
14 15 16 17 18 19 20 21
                format: 'HH:mm',
            });
        });
"""

DateInput = """
        $(function () {
            $('.dateinput').datetimepicker({
22
                useCurrent: false,
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
                format: 'DD/MM/YYYY',
                maxDate: Date.now(),
                showTodayButton: true,
                showClear: true,
                showClose: true
            });
        });
"""


TimeInput = """
        $(function () {
            $('.timeinput').datetimepicker({
                format: 'HH:mm'
            });
        });
"""