1 <% for _, tab in ipairs(self.tab_names) do data = self.tabs[tab] %
>
2 <div class=
"cbi-tabcontainer"<%=
3 attr(
"id",
"container.%s.%s.%s" %{ self.config, section, tab }) ..
4 attr(
"data-tab", tab) ..
5 attr(
"data-tab-title", data.title) ..
6 attr(
"data-tab-active", tostring(tab == self.selected_tab))
8 <% if data.description then %
>
9 <div class=
"cbi-tab-descr"><%=data.description%
></div>
12 <% self:render_tab(tab, section, scope or {}) %
>