]>
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
: '2,22:30', text
: gettext("Every day") + " 02:30, 22:30" },
22 { value
: 'mon..fri', text
: gettext("Monday to Friday") + " 00:00" },
23 { value
: 'mon..fri */1:00', text
: gettext("Monday to Friday") + ': ' + gettext("hourly") },
25 value
: 'mon..fri 7..18:00/15',
26 text
: gettext("Monday to Friday") + ', '
27 + Ext
.String
.format(gettext('{0} to {1}'), '08:00', '18:45') + ': '
28 + Ext
.String
.format(gettext("Every {0} minutes"), 15),
30 { value
: 'sun 01:00', text
: gettext("Sunday") + " 01:00" },
31 { value
: 'sat *-1..7 15:00', text
: gettext("First Saturday each Month") + " 15:00" },
36 '<ul class="x-list-plain"><tpl for=".">',
37 '<li role="option" class="x-boundlist-item">{text}</li>',