summaryrefslogtreecommitdiffhomepage
path: root/libs/cbi
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-01-11 03:44:04 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-01-11 03:44:04 +0000
commitfb7aea55e89c4484aa14460bb788285c36d15d3c (patch)
tree549aba4555bc5b40640985f6b275134854400e36 /libs/cbi
parent1b989e556af2e018744dd9f875a01a0e5ea27ded (diff)
libs/cbi: add support for hidden form fields in sections
Diffstat (limited to 'libs/cbi')
-rw-r--r--libs/cbi/luasrc/view/cbi/ucisection.htm10
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 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
+-%>
+ <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 -%>