summaryrefslogtreecommitdiffhomepage
path: root/src/ffluci/view/cbi/tsection.htm
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-03-20 20:33:43 +0000
committerSteven Barth <steven@midlink.org>2008-03-20 20:33:43 +0000
commite9461f898cdd8f740accdf8c0c99dd1cfe48d1ea (patch)
tree93ad322e9d329303377c4924e9a1c222714e7525 /src/ffluci/view/cbi/tsection.htm
parente8b87fffb9ec6654eeb82c49e49ca9491ff4299c (diff)
* CBI updates
Diffstat (limited to 'src/ffluci/view/cbi/tsection.htm')
-rw-r--r--src/ffluci/view/cbi/tsection.htm13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/ffluci/view/cbi/tsection.htm b/src/ffluci/view/cbi/tsection.htm
index 2c25500f8..420bfd14a 100644
--- a/src/ffluci/view/cbi/tsection.htm
+++ b/src/ffluci/view/cbi/tsection.htm
@@ -1,6 +1,5 @@
<%
-require("ffluci.model.uci")
-local allsections = ffluci.model.uci.show(map)
+local allsections = self.map:read()
local sections = {}
for k, v in pairs(allsections) do
if v[".type"] == sectiontype then
@@ -8,12 +7,12 @@ for k, v in pairs(allsections) do
end
end
%>
-<div class="cbi-tsection" id="cbi-<%=map%>-<%=sectiontype%>">
-<h2><%=title%></h2>
-<div class="cbi-tsection-descr"><%=description%></div>
+<div class="cbi-tsection" id="cbi-<%=self.map.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-<%=map%>-<%=k%>">
-<% for k, node in ipairs(children) do
+<div class="cbi-tsection-node" id="cbi-<%=self.map.config%>-<%=k%>">
+<% for k, node in ipairs(self.children) do
node.section = k
node:render(k)
end %>