]> git.proxmox.com Git - pve-manager.git/blob - www/manager6/form/CalendarEvent.js
ui: form/CalendarEvent: remove displayField from config
[pve-manager.git] / www / manager6 / form / CalendarEvent.js
1 Ext.define('PVE.form.CalendarEvent', {
2 extend: 'Ext.form.field.ComboBox',
3 xtype: 'pveCalendarEvent',
4
5 editable: true,
6
7 valueField: 'value',
8 queryMode: 'local',
9
10 store: {
11 field: ['value', 'text'],
12 data: [
13 { value: '*/30', text: Ext.String.format(gettext("Every {0} minutes"), 30) },
14 { value: '*/2:00', text: gettext("Every two hours") },
15 { value: '2,22:30', text: gettext("Every day") + " 02:30, 22:30" },
16 { value: 'mon..fri', text: gettext("Monday to Friday") + " 00:00" },
17 { value: 'mon..fri */1:00', text: gettext("Monday to Friday") + ': ' + gettext("hourly") },
18 { value: 'sun 01:00', text: gettext("Sunday") + " 01:00" },
19 ],
20 },
21
22 tpl: [
23 '<ul class="x-list-plain"><tpl for=".">',
24 '<li role="option" class="x-boundlist-item">{text}</li>',
25 '</tpl></ul>',
26 ],
27
28 displayTpl: [
29 '<tpl for=".">',
30 '{value}',
31 '</tpl>',
32 ],
33
34 });