mirror of
https://github.com/openwrt/routing.git
synced 2025-02-23 15:06:13 +00:00
Compile tested: mips_24kc, arm_cortex-a9_vfpv3-d16, i386_pentium4, x86_64, i386_pentium-mmx, mipsel_24kc Signed-off-by: Patrick Grimm <patrick@lunatiki.de>
26 lines
718 B
JavaScript
26 lines
718 B
JavaScript
'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();
|
|
}
|
|
});
|