summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/luasrc/view/cbi/tabcontainer.htm
blob: 38c435d6a112e69b3240e5cc290bec365fa4d4a0 (plain)
1
2
3
4
5
6
7
<% for tab, data in pairs(self.tabs) do %>
	<div class="cbi-tabcontainer" id="container.<%=self.config%>.<%=section%>.<%=tab%>"<% if tab ~= self.selected_tab then %> style="display:none"<% end %>>
		<% if data.description then %><div class="cbi-tab-descr"><%=data.description%></div><% end %>
		<% self:render_tab(tab, section, scope or {}) %>
	</div>
	<script type="text/javascript">cbi_t_add('<%=self.config%>.<%=section%>', '<%=tab%>')</script>
<% end %>