luci/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/configuration.js
Paul Spooren 641bfe3967 luci-app-attendedsysupgrade: use correct linter settings
The previous settings would use spaces which messed up things since LuCI
uses tabs everywhere.

Also removed a stray console.log

Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-09-05 22:44:19 -10:00

33 lines
830 B
JavaScript

'use strict';
'require view';
'require form';
return view.extend({
render: function() {
var m, s, o;
m = new form.Map('attendedsysupgrade', _('Attended Sysupgrade'),
_('Attendedsysupgrade Configuration.'));
s = m.section(form.TypedSection, 'server', _('Server'));
s.anonymous = true;
s.option(form.Value, 'url', _('Address'),
_('Address of the sysupgrade server'));
s = m.section(form.TypedSection, 'client', _('Client'));
s.anonymous = true;
o = s.option(form.Flag, 'auto_search', _('Search on opening'),
_('Search for new sysupgrades on opening the tab'));
o.default = '1';
o.rmempty = false;
o = s.option(form.Flag, 'advanced_mode', _('Advanced Mode'),
_('Show advanced options like packge list modification'));
o.default = '0';
o.rmempty = false;
return m.render();
},
});