]>
git.proxmox.com Git - pmg-gui.git/blob - js/SystemOptions.js
2 Ext
.define('PMG.SystemOptions', {
3 extend
: 'Proxmox.grid.ObjectGrid',
4 xtype
: 'pmgSystemOptions',
10 url
: '/api2/json/config/admin',
12 url
: '/api2/extjs/config/admin',
13 onlineHelp
: 'pmgconfig_systemconfig'
17 xclass
: 'Ext.app.ViewController',
20 var me
= this.getView();
26 text
: gettext('Edit'),
27 xtype
: 'proxmoxButton',
33 itemdblclick
: 'onEdit'
36 add_proxy_row: function(name
, text
, opts
) {
40 me
.rows
= me
.rows
|| {};
44 defaultValue
: Proxmox
.Utils
.noneText
,
47 xtype
: 'proxmoxWindowEdit',
48 onlineHelp
: 'pmgconfig_systemconfig',
51 xtype
: 'proxmoxtextfield',
55 emptyText
: Proxmox
.Utils
.noneText
,
56 labelWidth
: Proxmox
.Utils
.compute_min_label_width(
57 text
, opts
.labelWidth
),
64 initComponent : function() {
67 me
.add_boolean_row('dailyreport', gettext('Send daily admin reports'),
70 me
.add_boolean_row('advfilter', gettext('Use advanced statistic filters'),
73 me
.add_integer_row('statlifetime', gettext('User statistic lifetime (days)'),
74 { minValue
: 1, defaultValue
: 7, deleteEmpty
: true });
76 me
.add_text_row('email', gettext("Administrator EMail"),
77 { deleteEmpty
: true, defaultValue
: Proxmox
.Utils
.noneText
});
79 me
.add_proxy_row('http_proxy', gettext("HTTP proxy"));
83 me
.on('activate', me
.rstore
.startUpdate
);
84 me
.on('deactivate', me
.rstore
.stopUpdate
);
85 me
.on('destroy', me
.rstore
.stopUpdate
);