X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=libs%2Fcbi%2Fluasrc%2Fview%2Fcbi%2Fucisection.htm;h=a8b313d366fbf11e53b295500572a1d0b1268366;hp=eb581cab78082e9e6301493bac1c9445edd5b2a6;hb=7c0ea176236eb4232303fbc60aabb2e0448a169f;hpb=05d3bf06b4ae6f07ed1c55fd1f7b4e97cb0e2d3d diff --git a/libs/cbi/luasrc/view/cbi/ucisection.htm b/libs/cbi/luasrc/view/cbi/ucisection.htm index eb581cab7..a8b313d36 100644 --- a/libs/cbi/luasrc/view/cbi/ucisection.htm +++ b/libs/cbi/luasrc/view/cbi/ucisection.htm @@ -13,24 +13,68 @@ $Id$ -%> -<% self:render_children(section, scope or {}) %> +<%- + if type(self.hidden) == "table" then + for k, v in pairs(self.hidden) do +-%> + +<%- + end + end +%> + +<% if self.tabs then %> + <%+cbi/tabcontainer%> +<% else %> + <% self:render_children(section, scope or {}) %> +<% end %> -<% if #self.optionals[section] > 0 or self.dynamic then %> +<% if self.error and self.error[section] then -%> +
+ +
+<%- end %> + +<% if self.optionals[section] and #self.optionals[section] > 0 or self.dynamic then %>
<% if self.dynamic then %> - + + <% if self.optionals[section] and #self.optionals[section] > 0 then %> + + <% end %> <% else %> - - <% for key, val in pairs(self.optionals[section]) do %> - - <% end %> + <% for key, val in pairs(self.optionals[section]) do -%> + + <%- end %> <% end %> - +
<% end %>