projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b989e5
)
libs/cbi: add support for hidden form fields in sections
author
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 11 Jan 2009 03:44:04 +0000
(
03:44
+0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 11 Jan 2009 03:44:04 +0000
(
03:44
+0000)
libs/cbi/luasrc/view/cbi/ucisection.htm
patch
|
blob
|
history
diff --git
a/libs/cbi/luasrc/view/cbi/ucisection.htm
b/libs/cbi/luasrc/view/cbi/ucisection.htm
index 5504a7476c562db0cd9ed2ca580d11212a20a9d6..54115f62439e70190235fac075f78d6ccb969bd5 100644
(file)
--- 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 -%>