X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=libs%2Fcbi%2Fluasrc%2Fview%2Fcbi%2Fucisection.htm;h=54115f62439e70190235fac075f78d6ccb969bd5;hb=fb7aea55e89c4484aa14460bb788285c36d15d3c;hp=1d318f7915db52849b71b21b11a9035ac034f2ad;hpb=18dfd21c39e6ddcd6936174af654a05b742c51b7;p=project%2Fluci.git diff --git a/libs/cbi/luasrc/view/cbi/ucisection.htm b/libs/cbi/luasrc/view/cbi/ucisection.htm index 1d318f791..54115f624 100644 --- a/libs/cbi/luasrc/view/cbi/ucisection.htm +++ b/libs/cbi/luasrc/view/cbi/ucisection.htm @@ -13,14 +13,44 @@ $Id$ -%> +<%- + if type(self.hidden) == "table" then + for k, v in pairs(self.hidden) do +-%> + +<%- + end + end +%> + <% self:render_children(section, scope or {}) %> -<% 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 -%> @@ -32,7 +62,8 @@ $Id$ <%- for k,v in pairs(d.deps) do -%> - <%-=string.format('"cbid.%s.%s.%s"', self.config, section, k) .. ":" .. string.format("%q", v)-%>, + <%-=string.format('"cbid.%s.%s.%s"', self.config, section, k) .. ":" .. string.format("%q", v)-%> + <%-if next(d.deps, k) then-%>,<%-end-%> <%- end -%>