diff options
author | Steven Barth <steven@midlink.org> | 2008-03-22 19:46:14 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-03-22 19:46:14 +0000 |
commit | 93c55f3c5d7d253423c9d5695b8d71388bd21988 (patch) | |
tree | d2d8b9cc73f040cda24836afd2711edb5c8eefb6 /src/ffluci/view/cbi/tsection.htm | |
parent | c8426cfa3cce952dde8cdf2eb058d0c2fae4986d (diff) |
* CBI updates
* Made dispatching paths unambiguous
Diffstat (limited to 'src/ffluci/view/cbi/tsection.htm')
-rw-r--r-- | src/ffluci/view/cbi/tsection.htm | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/src/ffluci/view/cbi/tsection.htm b/src/ffluci/view/cbi/tsection.htm index b613f6271f..bd19ecf59a 100644 --- a/src/ffluci/view/cbi/tsection.htm +++ b/src/ffluci/view/cbi/tsection.htm @@ -1,21 +1,11 @@ -<% -local allsections = self.map:read() -local sections = {} -for k, v in pairs(allsections) do - if v[".type"] == self.sectiontype then - sections[k] = v - end -end -%> <div class="cbi-tsection" id="cbi-<%=self.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-<%=self.config%>-<%=k%>"> -<% for i, node in ipairs(self.children) do - node.section = k - node:render() -end %> - </div> +<% for k, v in pairs(self:ucisections()) do%> + <fieldset class="cbi-tsection-node" id="cbi-<%=self.config%>-<%=k%>"> + <% if not self.anonymous then %><legend><%=k%></legend><% end %> +<% self:render_children(k) %> + </fieldset> + <br /> <% end %> </div> |