<%- local rowcnt = 0 local function rowstyle() rowcnt = rowcnt + 1 if rowcnt % 2 == 0 then return " cbi-rowstyle-1" end return " cbi-rowstyle-2" end local function width(o) if o.width then if type(o.width) == "number" then return ' style="width:%dpx"' % o.width end return ' style="width:%s"' % o.width end return "" end -%>
<% if self.title and #self.title > 0 then -%>

<%=self.title%>

<%- end %> <%- if self.sortable then -%> <%- end -%>
<%=self.description%>
<% for _, node in ipairs(self.children) do if not node.optional and node.option ~= "_update" then -%> <% end end -%> <% local isempty = true for i, section in ipairs(self:cfgsections()) do isempty = false local colorclass = rowstyle() local scope = { valueheader = "cbi/cell_valueheader", valuefooter = "cbi/cell_valuefooter" } -%> <% for _, node in ipairs(self.children) do if not node.optional and node.option ~= "_update" then node:render(section, scope) end end local alias = self.map:get(section, "alias") or string.format("Subscribe %s", section:sub(-4)) local update_title = "Subscribe: " .. tostring(alias) -%> <%- end -%> <%- if isempty then -%> <%- end -%>
><%=node.title%><%:Actions%>
onclick="return window.ssrUpdateSubscribeItem(this)" />
<%:This section contains no values yet%>