blob: 02d6d88bb29d9c4fc32d86f0e69ad93c73a2a13a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
'use strict';
'require form';
'require view';
return view.extend({
load: function() {
},
render: function() {
let m, s, o;
m = new form.Map('nut_server', _('NUT Server'),
_('Network UPS Tools Server Configuration'));
// Server global settings
s = m.section(form.NamedSection, 'upsd', 'upsd', _('UPS Server Global Settings'));
s.addremove = true;
o = s.option(form.Value, 'runas', _('RunAs User'), _('Drop privileges to this user'));
o.optional = true;
o.placeholder = 'nut'
o = s.option(form.Value, 'statepath', _('Path to state file'));
o.optional = true;
o.placeholder = '/var/run/nut'
return m.render();
}
});
|