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