From: Jo-Philipp Wich Date: Fri, 15 Jan 2016 16:42:40 +0000 (+0100) Subject: luci-base: add basic support for CBI map level tabbing X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=1bf268de06c1697fdf08b65dcc13c06b4bed909f;hp=27281dca56fd1c7fb03efd70f9d0f5dfc5f869d2 luci-base: add basic support for CBI map level tabbing Signed-off-by: Jo-Philipp Wich --- diff --git a/modules/luci-base/luasrc/view/cbi/map.htm b/modules/luci-base/luasrc/view/cbi/map.htm index e90c3f589..7f256adf1 100644 --- a/modules/luci-base/luasrc/view/cbi/map.htm +++ b/modules/luci-base/luasrc/view/cbi/map.htm @@ -8,6 +8,27 @@ <% if self.title and #self.title > 0 then %>

<%=self.title%>

<% end %> <% if self.description and #self.description > 0 then %>
<%=self.description%>
<% end %> <%- if firstmap and applymap then cbi_apply_xhr(self.config, parsechain, redirect) end -%> - <%- self:render_children() %> + + <% if self.tabbed then %> + + <% for i, section in ipairs(self.children) do %> +
style="display:none"<% end %>> + <% section:render() %> +
+ + <% end %> + <% else %> + <%- self:render_children() %> + <% end %>