<%- local count = 0 -%>
@@ -24,24 +33,24 @@ $Id$
<%- if not self.anonymous then -%>
|
<%- end -%>
- <%- for i, k in pairs(self.children) do -%>
-
<%=k.title%> |
- <%- count = count + 1; end; if self.extedit then -%>
-
|
- <%- count = count + 1; end; if self.addremove then -%>
+ <%- for i, k in pairs(self.children) do if not k.optional then -%>
+
+ <%- if k.titleref then -%><%- end -%>
+ <%-=k.title-%>
+ <%- if k.titleref then -%><%- end -%>
+ |
+ <%- count = count + 1; end; end; if self.extedit or self.addremove then -%>
|
<%- count = count + 1; end -%>
<%- if not self.anonymous then -%>
- |
+ |
<%- end -%>
- <%- for i, k in pairs(self.children) do -%>
+ <%- for i, k in pairs(self.children) do if not k.optional then -%>
<%=k.description%> |
- <%- end; if self.extedit then -%>
- |
- <%- end; if self.addremove then -%>
- |
+ <%- end; end; if self.extedit or self.addremove then -%>
+ |
<%- end -%>
<%- local isempty = true
@@ -50,25 +59,29 @@ $Id$
isempty = false
scope = { valueheader = "cbi/cell_valueheader", valuefooter = "cbi/cell_valuefooter" }
-%>
-
+
<% if not self.anonymous then -%>
<%=k%> |
<%- 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 -%>
<%- if self.extedit then -%>
-
+
<%- end; if self.addremove then %>
-
+
<%- end -%>
|
<%- end -%>
- <%- if self.addremove then -%>
-
-
- |
- <%- end -%>
<%- end -%>
@@ -79,15 +92,14 @@ $Id$
<%- end -%>
<%- if self.addremove then -%>
-