libs/cbi: add support for hidden form fields in sections
This commit is contained in:
parent
1b989e556a
commit
fb7aea55e8
1 changed files with 10 additions and 0 deletions
|
@ -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 -%>
|
||||
|
|
Loading…
Reference in a new issue