summaryrefslogtreecommitdiffhomepage
path: root/src/ffluci/view/cbi/tsection.htm
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-03-18 22:08:46 +0000
committerSteven Barth <steven@midlink.org>2008-03-18 22:08:46 +0000
commitf989f6ee00aad6bc655948df5add6df772c51f92 (patch)
tree1c9e43f2d15ed6b720bf67c0347fa00b33817595 /src/ffluci/view/cbi/tsection.htm
parente2f117b870b25f30d7a3ca0e8574a2399e7cfa2b (diff)
* CBI updates
Diffstat (limited to 'src/ffluci/view/cbi/tsection.htm')
-rw-r--r--src/ffluci/view/cbi/tsection.htm22
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>