diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-01-11 03:44:04 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-01-11 03:44:04 +0000 |
commit | fb7aea55e89c4484aa14460bb788285c36d15d3c (patch) | |
tree | 549aba4555bc5b40640985f6b275134854400e36 /libs/cbi/luasrc | |
parent | 1b989e556af2e018744dd9f875a01a0e5ea27ded (diff) |
libs/cbi: add support for hidden form fields in sections
Diffstat (limited to 'libs/cbi/luasrc')
-rw-r--r-- | libs/cbi/luasrc/view/cbi/ucisection.htm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libs/cbi/luasrc/view/cbi/ucisection.htm b/libs/cbi/luasrc/view/cbi/ucisection.htm index 5504a7476c..54115f6243 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 +-%> + <input type="hidden" name="cbid.<%=self.config%>.<%=section%>.<%=k%>" value="<%=luci.util.pcdata(v)%>" /> +<%- + end + end +%> + <% self:render_children(section, scope or {}) %> <% if self.error and self.error[section] then -%> |