<%- if not self.selected_tab then self.selected_tab = section.sectiontype end %>
<liid="tab.m-<%=self.config%>.<%=section.section or section.sectiontype%>"class="cbi-tab<%=(section.sectiontype == self.selected_tab) and '' or '-disabled'%>">
<aonclick="this.blur(); return cbi_t_switch('m-<%=self.config%>', '<%=section.section or section.sectiontype%>')"href="<%=REQUEST_URI%>?tab.m-<%=self.config%>=<%=section.section or section.sectiontype%>"><%=section.title or section.section or section.sectiontype %></a>
<% if section.sectiontype == self.selected_tab then %><inputtype="hidden"id="tab.m-<%=self.config%>"name="tab.m-<%=self.config%>"value="<%=section.section or section.sectiontype%>"/><% end %>
</li>
<% end %>
</ul>
<% for i, section in ipairs(self.children) do %>
<divclass="cbi-tabcontainer"id="container.m-<%=self.config%>.<%=section.section or section.sectiontype%>"<%ifsection.sectiontype~=self.selected_tabthen%> style="display:none"<% end %>>
<% section:render() %>
</div>
<scripttype="text/javascript">cbi_t_add('m-<%=self.config%>','<%=section.section or section.sectiontype%>')</script>
<% end %>
<% if not self.save then -%>
<divclass="cbi-section-error">
<% for _, section in ipairs(self.children) do %>
<% if section.error and section.error[section.section] then -%>
<ul><li>
<%:One or more invalid/required values on tab%>: <%=section.title or section.section or section.sectiontype%>