a99e646064d413114d239a4959dd2eb62dedea51
[project/luci.git] /
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
13 s = m.section(form.TypedSection, 'server', _('Server'));
14 s.anonymous = true;
15
16 s.option(form.Value, 'url', _('Address'),
17 _('Address of the sysupgrade server'));
18
19 s = m.section(form.TypedSection, 'client', _('Client'));
20 s.anonymous = true;
21
22 o = s.option(form.Flag, 'auto_search', _('Search on opening'),
23 _('Search for new sysupgrades on opening the tab'));
24 o.default = '1';
25 o.rmempty = false;
26
27 o = s.option(form.Flag, 'advanced_mode', _('Advances Mode'),
28 _('Show advanced options like packge list modification'));
29 o.default = '0';
30 o.rmempty = false;
31
32 return m.render();
33 }
34 });