luci-app-olsrd2: New Package for OLSR2 configuration and status visualisation'
[feed/routing.git] / luci-app-olsrd2 / htdocs / luci-static / resources / view / olsrd2 / domain.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, 'domain', _('domain configuration section'));
12 s.anonymous = true;
13 s.addremove = false;
14 o = s.option(form.Value, "table", _("table defines the routing table for the local routing entries."), "0-254");
15 o.optional = true;
16 o.placeholder = 254;
17 o.datatype = "range(0,254)";
18 o = s.option(form.Value, "protocol", _("protocol defines the protocol number for the local routing entries."), "0-254");
19 o.optional = true;
20 o.placeholder = 100;
21 o.datatype = "range(0,254)";
22 o = s.option(form.Value, "distance", _("distance defines the 'metric' (hopcount) of the local routing entries."), "0-254");
23 o.optional = true;
24 o.placeholder = 2;
25 o.datatype = "range(0,254)";
26 o = s.option(form.Flag, "srcip_routes", _("srcip_routes defines if the router sets the originator address as the source-ip entry into the local routing entries."), "");
27 o.optional = true;
28 o.datatype = "bool";
29
30 return m.render();
31 }
32 });