From e9461f898cdd8f740accdf8c0c99dd1cfe48d1ea Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Thu, 20 Mar 2008 20:33:43 +0000 Subject: * CBI updates --- src/ffluci/view/cbi/tsection.htm | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/ffluci/view/cbi/tsection.htm') diff --git a/src/ffluci/view/cbi/tsection.htm b/src/ffluci/view/cbi/tsection.htm index 2c25500f8a..420bfd14a8 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 %> -
-

<%=title%>

-
<%=description%>
+
+

<%=self.title%>

+
<%=self.description%>
<% for k, v in pairs(sections) do %> -
-<% for k, node in ipairs(children) do +
+<% for k, node in ipairs(self.children) do node.section = k node:render(k) end %> -- cgit v1.2.3