diff options
author | Steven Barth <steven@midlink.org> | 2008-03-21 19:30:53 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-03-21 19:30:53 +0000 |
commit | c8426cfa3cce952dde8cdf2eb058d0c2fae4986d (patch) | |
tree | d54f94efba36dd8e47cf0dab73a2194365bf734a /src/ffluci/view/cbi/tsection.htm | |
parent | 6e0df95e270dc0ee4c5d10e1d6ac2550f78ff54f (diff) |
* ffluci.cbi: updates
* ffluci.template: fixed a bug where different template scopes were not separated correctly
* Added ffluci.dispatcher.cbi and ffluci.dispatcher.dynamic
Diffstat (limited to 'src/ffluci/view/cbi/tsection.htm')
-rw-r--r-- | src/ffluci/view/cbi/tsection.htm | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/ffluci/view/cbi/tsection.htm b/src/ffluci/view/cbi/tsection.htm index 8c7f0c1151..b613f6271f 100644 --- a/src/ffluci/view/cbi/tsection.htm +++ b/src/ffluci/view/cbi/tsection.htm @@ -2,20 +2,20 @@ local allsections = self.map:read() local sections = {} for k, v in pairs(allsections) do - if v[".type"] == sectiontype then + 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> + <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 k, node in ipairs(self.children) do + <div class="cbi-tsection-node" id="cbi-<%=self.config%>-<%=k%>"> +<% for i, node in ipairs(self.children) do node.section = k - node:render(k) + node:render() end %> -</div> + </div> <% end %> -</div> + </div> |