summaryrefslogtreecommitdiffhomepage
path: root/src/ffluci/view/cbi/tsection.htm
blob: 2c25500f8a043c339e2c5d4fb7c70ed7fd98804d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<%
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>