1 <%- if firstmap and messages then local msg; for _, msg in ipairs(messages) do -%
>
2 <div class=
"alert-message warning"><%=pcdata(msg)%
></div>
5 <div class=
"cbi-map" id=
"cbi-<%=self.config%>">
6 <% if self.title and #self.title
> 0 then %
>
7 <h2 name=
"content"><%=self.title%
></h2>
9 <% if self.description and #self.description
> 0 then %
>
10 <div class=
"cbi-map-descr"><%=self.description%
></div>
12 <% if self.tabbed then %
>
14 <% for i, section in ipairs(self.children) do
15 tab = section.section or section.sectiontype %
>
16 <div class=
"cbi-tabcontainer"<%=
17 attr(
"id",
"container.m-%s.%s" %{ self.config, tab }) ..
18 attr(
"data-tab", tab) ..
19 attr(
"data-tab-title", section.title or tab)
21 <% section:render() %
>
26 <% if not self.save then -%
>
27 <div class=
"cbi-section-error">
28 <% for _, section in ipairs(self.children) do %
>
29 <% if section.error and section.error[section.section] then -%
>
31 <%:One or more invalid/required values on tab%
>:
<%=section.title or section.section or section.sectiontype%
>
38 <%- self:render_children() %
>