<%- if not self.anonymous then -%>
<%- if self.sectionhead then -%>
<%=self.sectionhead%>
<%- else -%>
<%- end -%>
<%- count = count +1; end -%>
<%- for i, k in pairs(self.children) do if not k.optional then -%>
<%- count = count + 1; end; end; if self.sortable then -%>
<%:Sort%>
<%- count = count + 1; end; if self.extedit or self.addremove then -%>
<%- count = count + 1; end -%>
<%- if not self.anonymous then -%>
<%- if self.sectiondesc then -%>
<%=self.sectiondesc%>
<%- else -%>
<%- end -%>
<%- end -%>
<%- for i, k in pairs(self.children) do if not k.optional then -%>
><%=k.description%>
<%- end; end; if self.sortable then -%>
<%- end; if self.extedit or self.addremove then -%>
<%- end -%>
<%- local isempty = true
for i, k in ipairs(self:cfgsections()) do
section = k
isempty = false
scope = { valueheader = "cbi/cell_valueheader", valuefooter = "cbi/cell_valuefooter" }
-%>
<%- end -%>
<%- if isempty then -%>
<%:This section contains no values yet%>
<%- end -%>
<% end %>
<%- if self.addremove then -%>
<% if self.template_addremove then include(self.template_addremove) else -%>