]> git.proxmox.com Git - pve-manager.git/blob - www/manager6/form/CalendarEvent.js
ui: eslint: fix various spacing related issues
[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 displayField: 'text',
9 queryMode: 'local',
10
11 store: {
12 field: ['value', 'text'],
13 data: [
14 { value: '*/30', text: Ext.String.format(gettext("Every {0} minutes"), 30) },
15 { value: '*/2:00', text: gettext("Every two hours") },
16 { value: '2,22:30', text: gettext("Every day") + " 02:30, 22:30" },
17 { value: 'mon..fri', text: gettext("Monday to Friday") + " 00:00" },
18 { value: 'mon..fri */1:00', text: gettext("Monday to Friday") + ': ' + gettext("hourly") },
19 { value: 'sun 01:00', text: gettext("Sunday") + " 01:00" },
20 ],
21 },
22
23 tpl: [
24 '<ul class="x-list-plain"><tpl for=".">',
25 '<li role="option" class="x-boundlist-item">{text}</li>',
26 '</tpl></ul>',
27 ],
28
29 displayTpl: [
30 '<tpl for=".">',
31 '{value}',
32 '</tpl>',
33 ],
34
35 });