7fcb83578306316349eec2a160dcc4d03ad411df
[project/luci.git] / modules / luci-base / luasrc / view / cbi / tabcontainer.htm
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))
7 %>>
8 <% if data.description then %>
9 <div class="cbi-tab-descr"><%=data.description%></div>
10 <% end %>
11
12 <% self:render_tab(tab, section, scope or {}) %>
13 </div>
14 <% end %>