tabcontainer.htm 458 B

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