]> git.99rst.org Git - openwrt-luci.git/blob
d5d1ddfbf4c108415f958d586c68a8e1c33a04ff
[openwrt-luci.git] /
1 'use strict';
2 'require view';
3 'require form';
4
5 return view.extend({
6 render: function () {
7 let m, s, o;
8
9 m = new form.Map(
10 'attendedsysupgrade',
11 _('Attended Sysupgrade'),
12 _('Attendedsysupgrade Configuration.')
13 );
14
15 s = m.section(form.TypedSection, 'server', _('Server'));
16 s.anonymous = true;
17
18 s.option(
19 form.Value,
20 'url',
21 _('Address'),
22 _('Address of the sysupgrade server')
23 );
24
25 s.option(
26 form.DynamicList,
27 'rebuilder',
28 _('Rebuilders'),
29 _(
30 'Other ASU server instances that rebuild a requested image. ' +
31 'Allows to compare checksums and verify that the results are the same.'
32 )
33 );
34
35 s = m.section(form.TypedSection, 'client', _('Client'));
36 s.anonymous = true;
37
38 o = s.option(
39 form.Flag,
40 'auto_search',
41 _('Search on opening'),
42 _('Search for new sysupgrades on opening the tab')
43 );
44 o.default = '1';
45 o.rmempty = false;
46
47 o = s.option(
48 form.Flag,
49 'advanced_mode',
50 _('Advanced Mode'),
51 _('Show advanced options like package list modification')
52 );
53 o.default = '0';
54 o.rmempty = false;
55
56 return m.render();
57 },
58 });
git clone https://git.99rst.org/PROJECT