From c6df983e60bc8f7a442a61143ef9fd1629b93c80 Mon Sep 17 00:00:00 2001 From: fujr Date: Thu, 24 Oct 2024 23:16:47 +0800 Subject: [PATCH] add modem_overview (for lua luci index page) --- .../luasrc/view/qmodem/modem_overview.htm | 386 ++++++++++++++++++ 1 file changed, 386 insertions(+) create mode 100644 luci/luci-app-qmodem/luasrc/view/qmodem/modem_overview.htm diff --git a/luci/luci-app-qmodem/luasrc/view/qmodem/modem_overview.htm b/luci/luci-app-qmodem/luasrc/view/qmodem/modem_overview.htm new file mode 100644 index 0000000..f3a7648 --- /dev/null +++ b/luci/luci-app-qmodem/luasrc/view/qmodem/modem_overview.htm @@ -0,0 +1,386 @@ + + + + + +<% +local uci = luci.model.uci.cursor() +modem_configs = {} +local modem = uci:foreach("qmodem", "modem-device",function(s) + table.insert(modem_configs,s[".name"]) + end) +for _,v in ipairs(modem_configs) do +%> +
+ +
+ + +<% +end +%>