summaryrefslogtreecommitdiff
path: root/luci-app-olsrd2/htdocs/luci-static/resources/view/olsrd2/lan_import.js
blob: 3839f7b60f26cfd3ef67fa73445f108a3e5580af (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
'use strict';
'require view';
'require form';

return view.extend({
	render: function() {
		var m, s, o;

		m = new form.Map('olsrd2', 'OLSRD2 Daemon');

		s = m.section(form.TypedSection, 'lan_import', _('Automatic import of routing tables as locally attached networks.'));
		s.anonymous = true;
		s.addremove = true;
		o = s.option(form.Value, "name", _("Name"), "Text");
		o.datatype = "string";
		o = s.option(form.Value, "interface", _("Interface"), "Name Interface");
		o.datatype = "string";
		o = s.option(form.Value, "table", _("IP Table"), "1-255");
		o.datatype = "range(1,255)";
		o = s.option(form.Value, "protocol", _("IP protocol"), "1-255");
		o.datatype = "range(1,255)";

		return m.render();
	}
});