]>
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'
15 xclass
: 'Ext.app.ViewController',
18 var me
= this.getView();
24 text
: gettext('Edit'),
25 xtype
: 'proxmoxButton',
31 itemdblclick
: 'onEdit',
34 add_proxy_row: function(name
, text
, opts
) {
38 me
.rows
= me
.rows
|| {};
42 defaultValue
: Proxmox
.Utils
.noneText
,
45 xtype
: 'proxmoxWindowEdit',
48 xtype
: 'proxmoxtextfield',
52 emptyText
: Proxmox
.Utils
.noneText
,
53 labelWidth
: Proxmox
.Utils
.compute_min_label_width(
54 text
, opts
.labelWidth
),
61 initComponent : function() {
64 me
.add_boolean_row('dailyreport', gettext('Send daily reports'),
67 me
.add_boolean_row('advfilter', gettext('Use advanced statistic filters'),
70 me
.add_integer_row('statlifetime', gettext('User statistic lifetime (days)'),
71 { minValue
: 1, defaultValue
: 7, deleteEmpty
: true });
73 me
.add_text_row('email', gettext("Administrator EMail"),
74 { deleteEmpty
: true, defaultValue
: Proxmox
.Utils
.noneText
});
76 me
.add_proxy_row('http_proxy', gettext("HTTP proxy"));
80 me
.on('activate', me
.rstore
.startUpdate
);
81 me
.on('destroy', me
.rstore
.stopUpdate
);