diff options
Diffstat (limited to 'src/ffluci/view/cbi/tsection.htm')
-rw-r--r-- | src/ffluci/view/cbi/tsection.htm | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/ffluci/view/cbi/tsection.htm b/src/ffluci/view/cbi/tsection.htm new file mode 100644 index 0000000000..2c25500f8a --- /dev/null +++ b/src/ffluci/view/cbi/tsection.htm @@ -0,0 +1,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> |