From 1bf268de06c1697fdf08b65dcc13c06b4bed909f Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 15 Jan 2016 17:42:40 +0100 Subject: [PATCH] luci-base: add basic support for CBI map level tabbing Signed-off-by: Jo-Philipp Wich --- modules/luci-base/luasrc/view/cbi/map.htm | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) 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 %>
-- 2.11.0