]> git.proxmox.com Git - pve-manager.git/blob - www/manager6/form/CalendarEvent.js
add calendarevent form field
[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: gettext("Every 30 minutes")},
15 { value: '*/2:00', text: gettext("Every two hours")},
16 { value: '2,22:30', text: gettext("02:30, 22:30")},
17 { value: 'mon..fri', text: gettext("Monday to Friday 00:00")},
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 });