summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-omcproxy/htdocs/luci-static/resources/view
diff options
context:
space:
mode:
authorShun Li <riverscn@gmail.com>2019-11-30 20:38:56 +0800
committerPaul Spooren <mail@aparcar.org>2019-12-03 20:59:55 +0100
commit796301a02f95739383262051ad1a551c153a680e (patch)
tree3ea8540f414476cdd2d8372dcf013b9d664f3e11 /applications/luci-app-omcproxy/htdocs/luci-static/resources/view
parent3fd4ec02157f779d6ecb5e3d3a372ffc2e2b2f6c (diff)
add luci support for omcproxy
Signed-off-by: Shun Li <riverscn@gmail.com>
Diffstat (limited to 'applications/luci-app-omcproxy/htdocs/luci-static/resources/view')
-rw-r--r--applications/luci-app-omcproxy/htdocs/luci-static/resources/view/omcproxy.js40
1 files changed, 40 insertions, 0 deletions
diff --git a/applications/luci-app-omcproxy/htdocs/luci-static/resources/view/omcproxy.js b/applications/luci-app-omcproxy/htdocs/luci-static/resources/view/omcproxy.js
new file mode 100644
index 0000000000..cbc77f66ff
--- /dev/null
+++ b/applications/luci-app-omcproxy/htdocs/luci-static/resources/view/omcproxy.js
@@ -0,0 +1,40 @@
+// Copyright 2019 Shun Li <riverscn@gmail.com>
+// This is free software, licensed under the Apache License, Version 2.0
+
+'use strict';
+'require form';
+'require tools.widgets as widgets';
+
+return L.view.extend({
+ render: function () {
+ var m, s, o;
+
+ m = new form.Map('omcproxy', _('omcproxy'), _('Embedded IGMPv3 and MLDv2 proxy'));
+
+ s = m.section(form.TypedSection, 'proxy', _('Proxy Instance'));
+ s.anonymous = true;
+ s.addremove = true;
+ s.addbtntitle = _('Add instance');
+
+ o = s.option(form.ListValue, 'scope', _('Scope'), _('Minimum multicast scope to proxy (only affects IPv6 multicast)'));
+ o.datatype = 'string';
+ o.value('', _('default'))
+ o.value('global', _('global'))
+ o.value('organization', _('organization-local'))
+ o.value('site', _('site-local'))
+ o.value('admin', _('admin-local'))
+ o.value('realm', _('realm'))
+ o.default = '';
+ o.rmempty = true;
+
+ o = s.option(widgets.NetworkSelect, 'uplink', _('Uplink interface'), _('Where does the multicast come from?'));
+ o.nocreate = true;
+ o.rmempty = false;
+
+ o = s.option(widgets.NetworkSelect, 'downlink', _('Downlink interface'), _('Where does the multicast go to?'));
+ o.nocreate = true;
+ o.rmempty = false;
+
+ return m.render();
+ }
+});