%- if firstmap and messages then local msg; for _, msg in ipairs(messages) do -%>
<% if self.title and #self.title > 0 then %>
<%=self.title%>
<% end %>
<% if self.description and #self.description > 0 then %>
<%=self.description%>
<% end %>
<%- if firstmap and applymap then cbi_apply_xhr(self.config, parsechain, redirect) end -%>
<% if self.tabbed then %>
<% for i, section in ipairs(self.children) do %>
style="display:none"<% end %>>
<% section:render() %>
<% end %>
<% else %>
<%- self:render_children() %>
<% end %>