Add luci, based upon commit : ae8ddb0ca6dfe98cb842fe2c01b36c4df55a0894
[librecmc/librecmc.git] / package / luci / 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 %>