summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-ser2net/htdocs/luci-static/resources/view/ser2net/leds.js
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-ser2net/htdocs/luci-static/resources/view/ser2net/leds.js')
-rw-r--r--applications/luci-app-ser2net/htdocs/luci-static/resources/view/ser2net/leds.js32
1 files changed, 32 insertions, 0 deletions
diff --git a/applications/luci-app-ser2net/htdocs/luci-static/resources/view/ser2net/leds.js b/applications/luci-app-ser2net/htdocs/luci-static/resources/view/ser2net/leds.js
new file mode 100644
index 000000000..1f85396f1
--- /dev/null
+++ b/applications/luci-app-ser2net/htdocs/luci-static/resources/view/ser2net/leds.js
@@ -0,0 +1,32 @@
+'use strict';
+'require form';
+
+return L.view.extend({
+ render: function() {
+ var m, s, o;
+
+ m = new form.Map('ser2net', 'ser2net');
+
+ s = m.section(form.TypedSection, "led", _("LED redirect"));
+ s.anonymous = false;
+ s.addremove = true;
+
+ o = s.option(form.Value, "driver", _("Driver"), _("The driver required for the device."));
+ o.rmempty = false;
+ o.default = "sysfs";
+
+ o = s.option(form.Value, "device", _("Device"), _("The device itself."));
+ o.rmempty = false;
+ o.default = "duckbill:red:rs485";
+
+ o = s.option(form.Value, "driver", _("Duration"), _("Blink duration."));
+ o.rmempty = false;
+ o.default = 20;
+
+ o = s.option(form.Value, "state", _("State"));
+ o.rmempty = false;
+ o.default = 1;
+
+ return m.render();
+ }
+});