summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/configuration.js
blob: d5d1ddfbf4c108415f958d586c68a8e1c33a04ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
'use strict';
'require view';
'require form';

return view.extend({
	render: function () {
		let 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.option(
			form.DynamicList,
			'rebuilder',
			_('Rebuilders'),
			_(
				'Other ASU server instances that rebuild a requested image. ' +
					'Allows to compare checksums and verify that the results are the same.'
			)
		);

		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 package list modification')
		);
		o.default = '0';
		o.rmempty = false;

		return m.render();
	},
});