]> git.proxmox.com Git - pve-manager.git/blame - www/manager6/form/CalendarEvent.js
ui: backup/run now: avoid passing "next-run" parameter to backend
[pve-manager.git] / www / manager6 / form / CalendarEvent.js
CommitLineData
56da9214
DC
1Ext.define('PVE.form.CalendarEvent', {
2 extend: 'Ext.form.field.ComboBox',
3 xtype: 'pveCalendarEvent',
4
5 editable: true,
8e57774e 6 emptyText: gettext('Editable'), // FIXME: better way to convey that to confused users?
56da9214
DC
7
8 valueField: 'value',
56da9214
DC
9 queryMode: 'local',
10
8e57774e
TL
11 matchFieldWidth: false,
12 listConfig: {
13 maxWidth: 450,
14 },
15
56da9214 16 store: {
8058410f 17 field: ['value', 'text'],
56da9214 18 data: [
42b45f8f 19 { value: '*/30', text: Ext.String.format(gettext("Every {0} minutes"), 30) },
8058410f 20 { value: '*/2:00', text: gettext("Every two hours") },
ec23a5cb 21 { value: '21:00', text: gettext("Every day") + " 21:00" },
8058410f 22 { value: '2,22:30', text: gettext("Every day") + " 02:30, 22:30" },
ec23a5cb 23 { value: 'mon..fri 00:00', text: gettext("Monday to Friday") + " 00:00" },
8058410f 24 { value: 'mon..fri */1:00', text: gettext("Monday to Friday") + ': ' + gettext("hourly") },
9a621f71
TL
25 {
26 value: 'mon..fri 7..18:00/15',
27 text: gettext("Monday to Friday") + ', '
358d3efd 28 + Ext.String.format(gettext('{0} to {1}'), '07:00', '18:45') + ': '
9a621f71
TL
29 + Ext.String.format(gettext("Every {0} minutes"), 15),
30 },
8058410f 31 { value: 'sun 01:00', text: gettext("Sunday") + " 01:00" },
5d51f148 32 { value: 'sat *-1..7 15:00', text: gettext("First Saturday each month") + " 15:00" },
f6710aac 33 ],
56da9214
DC
34 },
35
36 tpl: [
37 '<ul class="x-list-plain"><tpl for=".">',
38 '<li role="option" class="x-boundlist-item">{text}</li>',
f6710aac 39 '</tpl></ul>',
56da9214
DC
40 ],
41
42 displayTpl: [
43 '<tpl for=".">',
9a621f71 44 '{value}',
f6710aac
TL
45 '</tpl>',
46 ],
56da9214
DC
47
48});