* ffluci.cbi: updates
[project/luci.git] / src / ffluci / view / cbi / tsection.htm
index 8c7f0c1..b613f62 100644 (file)
@@ -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>