]> git.99rst.org Git - openwrt-luci.git/blob
5dcfe68d97daa3ec4531c89a799561ab2c6dac5a
[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 _('Other ASU server instances that rebuild a requested image. ' +
30 'Allows to compare checksums and verify that the results are the same.'
31 )
32 );
33
34 s = m.section(form.TypedSection, 'client', _('Client'));
35 s.anonymous = true;
36
37 o = s.option(
38 form.Flag,
39 'login_check_for_upgrades',
40 _('Check for upgrades'),
41 _('Check for upgrades whenever the System -> Overview page is loaded.')
42 );
43 o.default = '0';
44 o.rmempty = false;
45
46 o = s.option(
47 form.Flag,
48 'auto_search',
49 _('Search on opening'),
50 _('Search for upgrades when opening the Attended Sysupgrade tab')
51 );
52 o.default = '1';
53 o.rmempty = false;
54
55 o = s.option(
56 form.Flag,
57 'advanced_mode',
58 _('Advanced Mode'),
59 _('Show advanced options like package list modification')
60 );
61 o.default = '0';
62 o.rmempty = false;
63
64 return m.render();
65 },
66 });
git clone https://git.99rst.org/PROJECT