luci-app-olsrd2: upgrade uci-defaults for ucitrack handling to use json
[feed/routing.git] / luci-app-olsrd2 / htdocs / luci-static / resources / view / olsrd2 / lan_import.js
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('olsrd2', 'OLSRD2 Daemon');
10
11 s = m.section(form.TypedSection, 'lan_import', _('Automatic import of routing tables as locally attached networks.'));
12 s.anonymous = true;
13 s.addremove = true;
14 o = s.option(form.Value, "name", _("Name"), "Text");
15 o.datatype = "string";
16 o = s.option(form.Value, "interface", _("Interface"), "Name Interface");
17 o.datatype = "string";
18 o = s.option(form.Value, "table", _("IP Table"), "1-255");
19 o.datatype = "range(1,255)";
20 o = s.option(form.Value, "protocol", _("IP protocol"), "1-255");
21 o.datatype = "range(1,255)";
22
23 return m.render();
24 }
25 });