diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2014-06-11 14:00:09 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2014-06-11 14:00:09 +0000 |
commit | d4dc08dcb219a278a94e68aa87c13bca6361eeca (patch) | |
tree | a45570843d4d1cb6af11615674857bc23a5d4afb /modules/base/luasrc/view/cbi/tabmenu.htm | |
parent | 8c866ce4527f22d413fca3a46691ea31c58154c5 (diff) |
Fix wrong directory in luci-base
Diffstat (limited to 'modules/base/luasrc/view/cbi/tabmenu.htm')
-rw-r--r-- | modules/base/luasrc/view/cbi/tabmenu.htm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/base/luasrc/view/cbi/tabmenu.htm b/modules/base/luasrc/view/cbi/tabmenu.htm new file mode 100644 index 000000000..b96ac9ce4 --- /dev/null +++ b/modules/base/luasrc/view/cbi/tabmenu.htm @@ -0,0 +1,13 @@ +<%- if self.tabs then %> + <ul class="cbi-tabmenu"> + <%- self.selected_tab = luci.http.formvalue("tab." .. self.config .. "." .. section) %> + <%- for _, tab in ipairs(self.tab_names) do if #self.tabs[tab].childs > 0 then %> + <script type="text/javascript">cbi_c['container.<%=self.config%>.<%=section%>.<%=tab%>'] = <%=#self.tabs[tab].childs%>;</script> + <%- if not self.selected_tab then self.selected_tab = tab end %> + <li id="tab.<%=self.config%>.<%=section%>.<%=tab%>" class="cbi-tab<%=(tab == self.selected_tab) and '' or '-disabled'%>"> + <a onclick="this.blur(); return cbi_t_switch('<%=self.config%>.<%=section%>', '<%=tab%>')" href="<%=REQUEST_URI%>?tab.<%=self.config%>.<%=section%>=<%=tab%>"><%=self.tabs[tab].title%></a> + <% if tab == self.selected_tab then %><input type="hidden" id="tab.<%=self.config%>.<%=section%>" name="tab.<%=self.config%>.<%=section%>" value="<%=tab%>" /><% end %> + </li> + <% end end -%> + </ul> +<% end -%> |