From: Jo-Philipp Wich Date: Sun, 11 Jan 2009 03:44:04 +0000 (+0000) Subject: libs/cbi: add support for hidden form fields in sections X-Git-Tag: 0.9.0~815 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=fb7aea55e89c4484aa14460bb788285c36d15d3c libs/cbi: add support for hidden form fields in sections --- diff --git a/libs/cbi/luasrc/view/cbi/ucisection.htm b/libs/cbi/luasrc/view/cbi/ucisection.htm index 5504a7476..54115f624 100644 --- a/libs/cbi/luasrc/view/cbi/ucisection.htm +++ b/libs/cbi/luasrc/view/cbi/ucisection.htm @@ -13,6 +13,16 @@ $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.error and self.error[section] then -%>