>
<%- for i, k in pairs(self.children) do if not k.optional then -%>
<%- count = count + 1; end; end; if self.sortable or self.extedit or self.addremove then -%>
<%- count = count + 1; end -%>
<%- for i, k in pairs(self.children) do if not k.optional then -%>
><%=k.description%>
<%- end; end; if self.sortable or self.extedit or self.addremove then -%>
<%- end -%>
<%- local isempty, i, k = true, nil, nil
for i, k in ipairs(self:cfgsections()) do
isempty = false
local section = k
local sectionname = striptags((type(self.sectiontitle) == "function") and self:sectiontitle(section) or k)
local sectiontitle = ifattr(sectionname and (not self.anonymous or self.sectiontitle), "data-title", sectionname)
local colorclass = (self.extedit or self.rowcolors) and " cbi-rowstyle-%d" % rowstyle() or ""
local 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 -%>