summaryrefslogtreecommitdiffhomepage
path: root/src/ffluci/view/cbi/tsection.htm
diff options
context:
space:
mode:
Diffstat (limited to 'src/ffluci/view/cbi/tsection.htm')
-rw-r--r--src/ffluci/view/cbi/tsection.htm18
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>