diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/_flatpickr.scss b/koha-tmpl/intranet-tmpl/prog/css/src/_flatpickr.scss index 59886c9e83..85c4e96f8f 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/_flatpickr.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/_flatpickr.scss @@ -963,3 +963,36 @@ span.flatpickr-weekday { .flatpickr_wrapper { white-space: nowrap; } + +/* Shortcut buttons plugin */ + +.shortcut-buttons-flatpickr-wrapper { + display: flex; + justify-content: center; + padding: 5px; + + .shortcut-buttons-flatpickr-label { + align-content: center; + display: flex; + justify-content: center; + flex-direction: column; + padding: 0 5px; + } + + .shortcut-buttons-flatpickr-buttons { + display: flex; + flex-flow: row wrap; + + .shortcut-buttons-flatpickr-button { + background: transparent none; + border: 0; + color: #004D99; + font-size: 90%; + margin: 2px; + + &:hover { + color: #538200; + } + } + } +} diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc index ac17aa8325..83ae48013e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc @@ -98,18 +98,18 @@ label: __("Tomorrow") } ], - label: "or", + label: __("or"), onClick: (index, fp) => { let date; switch (index) { case 0: - date = new Date(Date.now() - 24 * 60 * 60 * 1000); + date = new Date().fp_incr(-1); break; case 1: date = new Date(); break; case 2: - date = new Date(Date.now() + 24 * 60 * 60 * 1000); + date = new Date().fp_incr(1); break; } date.setHours(23, 59, 0, 0);