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: http://git.lede-project.org./?a=commitdiff_plain;h=1bf268de06c1697fdf08b65dcc13c06b4bed909f;p=project%2Fluci.git 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 e90c3f589f..7f256adf13 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 %>