]>
git.proxmox.com Git - pmg-gui.git/blob - js/SystemOptions.js
1 Ext
.define('PMG.SystemOptions', {
2 extend
: 'Proxmox.grid.ObjectGrid',
3 xtype
: 'pmgSystemOptions',
9 url
: '/api2/json/config/admin',
11 url
: '/api2/extjs/config/admin',
12 onlineHelp
: 'pmgconfig_systemconfig',
16 xclass
: 'Ext.app.ViewController',
19 let view
= this.getView();
25 text
: gettext('Edit'),
26 xtype
: 'proxmoxButton',
32 itemdblclick
: 'onEdit',
35 add_proxy_row: function(name
, text
, opts
) {
39 me
.rows
= me
.rows
|| {};
43 defaultValue
: Proxmox
.Utils
.noneText
,
46 xtype
: 'proxmoxWindowEdit',
47 onlineHelp
: 'pmgconfig_systemconfig',
50 xtype
: 'proxmoxtextfield',
54 emptyText
: Proxmox
.Utils
.noneText
,
55 labelWidth
: Proxmox
.Utils
.compute_min_label_width(
56 text
, opts
.labelWidth
),
63 initComponent: function() {
66 me
.add_boolean_row('dailyreport', gettext('Send daily admin reports'),
69 me
.add_boolean_row('advfilter', gettext('Use advanced statistic filters'),
72 me
.add_integer_row('statlifetime', gettext('User statistic lifetime (days)'),
73 { minValue
: 1, defaultValue
: 7, deleteEmpty
: true });
75 me
.add_text_row('email', gettext("Administrator EMail"),
76 { deleteEmpty
: true, defaultValue
: Proxmox
.Utils
.noneText
});
78 me
.add_proxy_row('http_proxy', gettext("HTTP proxy"));
82 me
.on('activate', me
.rstore
.startUpdate
);
83 me
.on('deactivate', me
.rstore
.stopUpdate
);
84 me
.on('destroy', me
.rstore
.stopUpdate
);