]>
Commit | Line | Data |
---|---|---|
1a7e73d1 DC |
1 | Ext.define('PMG.RuleEditor', { |
2 | extend: 'Proxmox.window.Edit', | |
3 | xtype: 'ruleeditwindow', | |
4 | ||
5 | url: undefined, | |
6 | ||
7 | method: 'PUT', | |
8 | ||
9 | subject: gettext('Rules'), | |
10 | ||
11 | width: 400, | |
12 | ||
13 | items: [ | |
14 | { | |
15 | xtype: 'textfield', | |
16 | name: 'name', | |
17 | allowBlank: false, | |
18 | fieldLabel: gettext('Name') | |
19 | }, | |
20 | { | |
21 | xtype: 'proxmoxintegerfield', | |
22 | name: 'priority', | |
23 | allowBlank: false, | |
24 | minValue: 0, | |
25 | maxValue: 100, | |
26 | fieldLabel: gettext('Priority') | |
27 | }, | |
28 | { | |
29 | xtype: 'proxmoxKVComboBox', | |
30 | name: 'direction', | |
31 | comboItems: [ | |
32 | [0, PMG.Utils.rule_direction_text[0]], | |
33 | [1, PMG.Utils.rule_direction_text[1]], | |
34 | [2, PMG.Utils.rule_direction_text[2]]], | |
35 | value: 2, | |
36 | fieldLabel: gettext('Direction') | |
37 | }, | |
38 | { | |
39 | xtype: 'proxmoxcheckbox', | |
40 | name: 'active', | |
41 | defaultValue: 0, | |
42 | uncheckedValue: 0, | |
43 | checked: false, | |
44 | fieldLabel: gettext('Active') | |
45 | } | |
749af060 | 46 | ] |
1a7e73d1 | 47 | }); |