summaryrefslogtreecommitdiffhomepage
path: root/src/ffluci/view/cbi/tsection.htm
blob: b613f6271f069b588a831a2d306acac05460e1e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<%
local allsections = self.map:read()
local sections = {}
for k, v in pairs(allsections) do
	if v[".type"] == self.sectiontype then
		sections[k] = v
	end
end 
%>
				<div class="cbi-tsection" id="cbi-<%=self.config%>-<%=self.sectiontype%>">
					<h2><%=self.title%></h2>
					<div class="cbi-tsection-descr"><%=self.description%></div>
<% for k, v in pairs(sections) do %>
					<div class="cbi-tsection-node" id="cbi-<%=self.config%>-<%=k%>">
<% for i, node in ipairs(self.children) do
	node.section = k
	node:render()
end %>
					</div>
<% end %>
				</div>