From 4912d5f0e30529ecaf182a3eee66394c873d28f1 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 7 Dec 2021 18:54:24 +0100 Subject: [PATCH] ui: calendar event: add once daily example and clarify workday one similar to PVE, copying over the remaining commit message: Using 00:00 with relying on the implied default is sub optimal as its a bit of a magic example that new users may not understand as easily. So spell it out explicitly, even if there'd be a shorter version possible. We also had some request for the once-daily every day, and its a sensible example to have in general, could help getting the difference between an hour list and a single one. Signed-off-by: Thomas Lamprecht --- www/form/CalendarEvent.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/form/CalendarEvent.js b/www/form/CalendarEvent.js index 96110aaa..800c41db 100644 --- a/www/form/CalendarEvent.js +++ b/www/form/CalendarEvent.js @@ -8,8 +8,9 @@ Ext.define('PBS.data.CalendarEventExamples', { { value: 'hourly', text: gettext("Every hour") }, { value: '0/2:00', text: gettext("Every two hours") }, { value: '2,22:30', text: gettext("Every day") + " 02:30, 22:30" }, + { value: '21:00', text: gettext("Every day") + " 21:00" }, { value: 'daily', text: gettext("Every day") + " 00:00" }, - { value: 'mon..fri', text: gettext("Monday to Friday") + " 00:00" }, + { value: 'mon..fri 00:00', text: gettext("Monday to Friday") + " 00:00" }, { value: 'mon..fri *:00', text: gettext("Monday to Friday") + ', ' + gettext("hourly") }, { value: 'sat 18:15', text: gettext("Every Saturday") + " 18:15" }, { value: 'monthly', text: gettext("Every first day of the Month") + " 00:00" },