mirror of
https://github.com/openwrt/routing.git
synced 2025-02-23 17:26:14 +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>
33 lines
976 B
JavaScript
33 lines
976 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, 'olsrv2_lan', _('Prefix configuration section'));
|
|
s.anonymous = true;
|
|
s.addremove = true;
|
|
o = s.option(form.Value, "name", _("Name"), "Text");
|
|
o.datatype = "string";
|
|
o = s.option(form.Value, "prefix", _("locally attached network prefix"), "");
|
|
o.datatype = "string";
|
|
o = s.option(form.Value, "domain", _("domain for this LAN entry, -1 for all domains"), "-1-254");
|
|
o.optional = true;
|
|
o.placeholder = -1;
|
|
o.datatype = "range(-1,254)";
|
|
o = s.option(form.Value, "metric", _("metric value for this LAN entry"), "0-254");
|
|
o.optional = true;
|
|
o.placeholder = 2;
|
|
o.datatype = "range(0,254)";
|
|
o = s.option(form.Flag, "source_prefix", _("source prefix for lan (source specific routing)"), "");
|
|
o.optional = true;
|
|
o.datatype = "bool";
|
|
|
|
return m.render();
|
|
}
|
|
});
|