]> git.proxmox.com Git - pve-manager.git/blobdiff - www/manager6/form/CalendarEvent.js
ui: calendar event: fix descriptions for examples
[pve-manager.git] / www / manager6 / form / CalendarEvent.js
index 00953f3717416a6a0feb979ae0a63591fbf77203..58090ddba073cbd4bcc93560269e80bac114b846 100644 (file)
@@ -3,10 +3,16 @@ Ext.define('PVE.form.CalendarEvent', {
     xtype: 'pveCalendarEvent',
 
     editable: true,
+    emptyText: gettext('Editable'), // FIXME: better way to convey that to confused users?
 
     valueField: 'value',
     queryMode: 'local',
 
+    matchFieldWidth: false,
+    listConfig: {
+       maxWidth: 450,
+    },
+
     store: {
        field: ['value', 'text'],
        data: [
@@ -15,7 +21,14 @@ Ext.define('PVE.form.CalendarEvent', {
            { value: '2,22:30', text: gettext("Every day") + " 02:30, 22:30" },
            { value: 'mon..fri', text: gettext("Monday to Friday") + " 00:00" },
            { value: 'mon..fri */1:00', text: gettext("Monday to Friday") + ': ' + gettext("hourly") },
+           {
+               value: 'mon..fri 7..18:00/15',
+               text: gettext("Monday to Friday") + ', '
+                   + Ext.String.format(gettext('{0} to {1}'), '07:00', '18:45') + ': '
+                   + Ext.String.format(gettext("Every {0} minutes"), 15),
+           },
            { value: 'sun 01:00', text: gettext("Sunday") + " 01:00" },
+           { value: 'sat *-1..7 15:00', text: gettext("First Saturday each month") + " 15:00" },
        ],
     },
 
@@ -27,7 +40,7 @@ Ext.define('PVE.form.CalendarEvent', {
 
     displayTpl: [
        '<tpl for=".">',
-       '{value}',
+           '{value}',
        '</tpl>',
     ],