summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/configuration.js
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/configuration.js')
-rw-r--r--applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/configuration.js34
1 files changed, 34 insertions, 0 deletions
diff --git a/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/configuration.js b/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/configuration.js
new file mode 100644
index 0000000000..a99e646064
--- /dev/null
+++ b/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/configuration.js
@@ -0,0 +1,34 @@
+'use strict';
+'require view';
+'require form';
+
+return view.extend({
+ render: function() {
+ var 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 = 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', _('Advances Mode'),
+ _('Show advanced options like packge list modification'));
+ o.default = '0';
+ o.rmempty = false;
+
+ return m.render();
+ }
+});