Files
luci/src/ffluci/view/cbi/tsection.htm
Steven Barth f989f6ee00 * CBI updates
2008-03-18 22:08:46 +00:00

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>