mirror of
https://github.com/openwrt/luci.git
synced 2026-04-15 10:51:51 +00:00
23 lines
532 B
HTML
23 lines
532 B
HTML
<%
|
|
require("ffluci.model.uci")
|
|
local allsections = ffluci.model.uci.show(map)
|
|
local sections = {}
|
|
for k, v in pairs(allsections) do
|
|
if v[".type"] == sectiontype then
|
|
sections[k] = v
|
|
end
|
|
end
|
|
%>
|
|
<div class="cbi-tsection" id="cbi-<%=map%>-<%=sectiontype%>">
|
|
<h2><%=title%></h2>
|
|
<div class="cbi-tsection-descr"><%=description%></div>
|
|
<% for k, v in pairs(sections) do %>
|
|
<div class="cbi-tsection-node" id="cbi-<%=map%>-<%=k%>">
|
|
<% for k, node in ipairs(children) do
|
|
node.section = k
|
|
node:render(k)
|
|
end %>
|
|
</div>
|
|
<% end %>
|
|
</div>
|