summaryrefslogtreecommitdiffstats
path: root/applications/luci-app-nut/htdocs/luci-static/resources/view/nut/nut_cgi_admin.js
blob: 559f7ee1a75173568b53d2a3f47be104fc5846a4 (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
'use strict';
'require form';
'require view';

return view.extend({
	load: function() {

	},

	render: function() {
		let m, s, o;

		m = new form.Map('nut_cgi', _('NUT CGI'),
			_('Network UPS Tools CGI Configuration') + '<br />' +
			'%s'.format('<a href="/nut">%s</a>'.format(_('Go to NUT CGI'))));

		s = m.section(form.TypedSection, 'upsset', _('Control UPS via CGI'));
		s.addremove = false;
		s.anonymous = true;
		s.optional = false;

		o = s.option(form.Flag, 'enable', _('Enable'));
		o.optional = false;
		o.default = false;

		return m.render();
	}
});