diff options
author | Jaymin Patel <jem.patel@gmail.com> | 2022-07-16 18:42:47 +0530 |
---|---|---|
committer | Jaymin Patel <jem.patel@gmail.com> | 2022-08-01 02:24:52 +0530 |
commit | 6c151fcddbabc0fcdd9de8c5088153e84f5b0ccd (patch) | |
tree | b2a031eb04b09fc5c36c50231dd16b0aa4d4110d /applications/luci-app-apinger/htdocs/luci-static/resources/view/apinger/interfaces.js | |
parent | b0b9a34f8b75f9c2c91cb6a4badcc4e8e4122821 (diff) |
luci-app-apinger: Add LuCI for Apinger
LuCI Support for Apinger
Signed-off-by: Jaymin Patel <jem.patel@gmail.com>
Diffstat (limited to 'applications/luci-app-apinger/htdocs/luci-static/resources/view/apinger/interfaces.js')
-rw-r--r-- | applications/luci-app-apinger/htdocs/luci-static/resources/view/apinger/interfaces.js | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/applications/luci-app-apinger/htdocs/luci-static/resources/view/apinger/interfaces.js b/applications/luci-app-apinger/htdocs/luci-static/resources/view/apinger/interfaces.js new file mode 100644 index 0000000000..5f53b27639 --- /dev/null +++ b/applications/luci-app-apinger/htdocs/luci-static/resources/view/apinger/interfaces.js @@ -0,0 +1,31 @@ +'use strict'; +'require view'; +'require form'; + +return view.extend({ + render: function() { + var m, s, o; + + m = new form.Map('apinger', _('Apinger - Interfaces'), + _('Names must match the interface name found in /etc/config/network.')); + + s = m.section(form.GridSection, 'interface'); + s.anonymous = false; + s.addremove = true; + s.addbtntitle = _('Add Interface Instance'); + + o = s.option(form.Flag, 'debug', _('Debug')); + o.datatype = 'boolean'; + o.default = false; + + o = s.option(form.Value, 'status_interval', _('Status Update Interval')); + o.datatype = 'range(1-60)'; + o.default = '5'; + + o = s.option(form.Value, 'rrd_interval', _('RRD Collection Interval')); + o.datatype = 'range(15-60)'; + o.default = '30'; + + return m.render(); + }, +}); |