]>
Commit | Line | Data |
---|---|---|
c37614f5 DM |
1 | Ext.define('PMG.FetchmailEdit', { |
2 | extend: 'Proxmox.window.Edit', | |
3 | xtype: 'pmgFetchmailEdit', | |
4 | ||
5 | userid: undefined, | |
6 | ||
7 | isAdd: true, | |
8 | ||
9 | subject: 'Fetchmail', | |
10 | ||
11 | fieldDefaults: { labelWidth: 120 }, | |
12 | ||
13 | items: { | |
14 | xtype: 'inputpanel', | |
15 | column1: [ | |
16 | { | |
17 | xtype: 'textfield', | |
18 | name: 'server', | |
19 | fieldLabel: gettext('Server'), | |
20 | allowBlank: false | |
21 | }, | |
22 | { | |
23 | xtype: 'proxmoxintegerfield', | |
24 | name: 'port', | |
25 | fieldLabel: gettext('Port'), | |
26 | minValue: 1, | |
27 | maxValue: 65535, | |
28 | allowBlank: false | |
29 | }, | |
30 | { | |
31 | xtype: 'textfield', | |
32 | name: 'user', | |
33 | fieldLabel: gettext('Username'), | |
34 | allowBlank: false | |
35 | }, | |
36 | { | |
37 | xtype: 'textfield', | |
38 | name: 'pass', | |
39 | inputType: 'password', | |
40 | fieldLabel: gettext('Passsword'), | |
41 | allowBlank: false | |
42 | }, | |
43 | { | |
44 | xtype: 'textfield', | |
45 | name: 'target', | |
46 | fieldLabel: gettext('Deliver to'), | |
47 | allowBlank: false | |
48 | }, | |
49 | ||
50 | ], | |
51 | column2: [ | |
52 | { | |
53 | xtype: 'proxmoxcheckbox', | |
54 | fieldLabel: gettext('Enabled'), | |
55 | name: 'enable', | |
56 | uncheckedValue: 0, | |
57 | checked: true | |
58 | }, | |
59 | { | |
60 | xtype: 'proxmoxintegerfield', | |
61 | name: 'interval', | |
62 | fieldLabel: gettext('Interval'), | |
63 | value: 1, | |
64 | minValue: 1, | |
65 | maxValue: 24*12*7, | |
66 | allowBlank: false | |
67 | }, | |
68 | { | |
69 | xtype: 'proxmoxcheckbox', | |
70 | fieldLabel: gettext('Use SSL'), | |
71 | name: 'ssl', | |
72 | uncheckedValue: 0, | |
73 | checked: false | |
74 | }, | |
75 | { | |
76 | xtype: 'proxmoxcheckbox', | |
77 | fieldLabel: gettext('Keep old mails'), | |
78 | name: 'keep', | |
79 | uncheckedValue: 0, | |
80 | checked: false | |
81 | } | |
82 | ] | |
83 | } | |
84 | }); |