Merge pull request #5698 from onemarcfifty/luci-ptoto-batadv
[project/luci.git] / applications / luci-app-attendedsysupgrade / htdocs / luci-static / resources / view / attendedsysupgrade / configuration.js
1 'use strict';
2 'require view';
3 'require form';
4
5 return view.extend({
6 render: function() {
7 var m, s, o;
8
9 m = new form.Map('attendedsysupgrade', _('Attended Sysupgrade'),
10 _('Attendedsysupgrade Configuration.'));
11
12 s = m.section(form.TypedSection, 'server', _('Server'));
13 s.anonymous = true;
14
15 s.option(form.Value, 'url', _('Address'),
16 _('Address of the sysupgrade server'));
17
18 s = m.section(form.TypedSection, 'client', _('Client'));
19 s.anonymous = true;
20
21 o = s.option(form.Flag, 'auto_search', _('Search on opening'),
22 _('Search for new sysupgrades on opening the tab'));
23 o.default = '1';
24 o.rmempty = false;
25
26 o = s.option(form.Flag, 'advanced_mode', _('Advanced Mode'),
27 _('Show advanced options like packge list modification'));
28 o.default = '0';
29 o.rmempty = false;
30
31 return m.render();
32 },
33 });