luci-app-olsrd2: New Package for OLSR2 configuration and status visualisation'
[feed/routing.git] / luci-app-olsrd2 / htdocs / luci-static / resources / view / olsrd2 / luci.js
diff --git a/luci-app-olsrd2/htdocs/luci-static/resources/view/olsrd2/luci.js b/luci-app-olsrd2/htdocs/luci-static/resources/view/olsrd2/luci.js
new file mode 100644 (file)
index 0000000..7348040
--- /dev/null
@@ -0,0 +1,22 @@
+'use strict';
+'require view';
+'require form';
+
+return view.extend({
+       render: function() {
+               var m, s, o;
+
+               m = new form.Map('luci_olsrd2', 'Luci options');
+
+               s = m.section(form.TypedSection, 'olsrd2', _('LUCI'));
+               s.anonymous = true;
+               s.addremove = false;
+
+               o = s.option(form.Flag, "resolve", _("do Hostname lookup"), "");
+               o.datatype = "bool";
+               o = s.option(form.Value, "domain", _("optional Public domain forwarding with dnsmasq-full (auth-zone=example.com) on the internetgateway "), "default is olsr");
+               o.datatype = "string";
+
+               return m.render();
+       }
+});