diff options
author | Steven Barth <steven@midlink.org> | 2008-08-13 18:01:30 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-08-13 18:01:30 +0000 |
commit | 5dc01425ef5e297d9c4913526df0a610e991c31b (patch) | |
tree | 40b602d1b2c76adadcec6f7752cb28485bb146f5 /libs/cbi/luasrc | |
parent | 4c1f7c116944fd5b37173401db2479859acab91b (diff) |
More UI optimizations
Diffstat (limited to 'libs/cbi/luasrc')
-rw-r--r-- | libs/cbi/luasrc/view/cbi/tblsection.htm | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/libs/cbi/luasrc/view/cbi/tblsection.htm b/libs/cbi/luasrc/view/cbi/tblsection.htm index cfee09f1c9..9d616255f3 100644 --- a/libs/cbi/luasrc/view/cbi/tblsection.htm +++ b/libs/cbi/luasrc/view/cbi/tblsection.htm @@ -31,9 +31,9 @@ end <%- if not self.anonymous then -%> <th> </th> <%- end -%> - <%- for i, k in pairs(self.children) do -%> + <%- for i, k in pairs(self.children) do if not k.optional then -%> <th class="cbi-section-table-cell"><%=k.title%></th> - <%- count = count + 1; end; if self.extedit or self.addremove then -%> + <%- count = count + 1; end; end; if self.extedit or self.addremove then -%> <th class="cbi-section-table-cell"> </th> <%- count = count + 1; end -%> </tr> @@ -41,9 +41,9 @@ end <%- if not self.anonymous then -%> <th> </th> <%- end -%> - <%- for i, k in pairs(self.children) do -%> + <%- for i, k in pairs(self.children) do if not k.optional then -%> <th class="cbi-section-table-cell"><%=k.description%></th> - <%- end; if self.extedit or self.addremove then -%> + <%- end; end; if self.extedit or self.addremove then -%> <th class="cbi-section-table-cell"> </th> <%- end -%> </tr> @@ -57,7 +57,16 @@ end <% if not self.anonymous then -%> <th><h3><%=k%></h3></th> <%- end %> - <%-+cbi/ucisection-%> + + + <%- + for k, node in ipairs(self.children) do + if not node.optional then + node:render(section, scope or {}) + end + end + -%> + <%- if self.extedit or self.addremove then -%> <td class="cbi-section-table-cell"> <%- if self.extedit then -%> |