]>
git.proxmox.com Git - pve-manager.git/blob - www/manager6/form/CalendarEvent.js
1 Ext
.define('PVE.form.CalendarEvent', {
2 extend
: 'Ext.form.field.ComboBox',
3 xtype
: 'pveCalendarEvent',
6 emptyText
: gettext('Editable'), // FIXME: better way to convey that to confused users?
11 matchFieldWidth
: false,
17 field
: ['value', 'text'],
19 { value
: '*/30', text
: Ext
.String
.format(gettext("Every {0} minutes"), 30) },
20 { value
: '*/2:00', text
: gettext("Every two hours") },
21 { value
: '21:00', text
: gettext("Every day") + " 21:00" },
22 { value
: '2,22:30', text
: gettext("Every day") + " 02:30, 22:30" },
23 { value
: 'mon..fri 00:00', text
: gettext("Monday to Friday") + " 00:00" },
24 { value
: 'mon..fri */1:00', text
: gettext("Monday to Friday") + ': ' + gettext("hourly") },
26 value
: 'mon..fri 7..18:00/15',
27 text
: gettext("Monday to Friday") + ', '
28 + Ext
.String
.format(gettext('{0} to {1}'), '07:00', '18:45') + ': '
29 + Ext
.String
.format(gettext("Every {0} minutes"), 15),
31 { value
: 'sun 01:00', text
: gettext("Sunday") + " 01:00" },
32 { value
: 'monthly', text
: gettext("Every first day of the Month") + " 00:00" },
33 { value
: 'sat *-1..7 15:00', text
: gettext("First Saturday each month") + " 15:00" },
34 { value
: 'yearly', text
: gettext("First day of the year") + " 00:00" },
39 '<ul class="x-list-plain"><tpl for=".">',
40 '<li role="option" class="x-boundlist-item">{text}</li>',