2008-04-27 20:53:32 +00:00
< div class = "cbi-section-node" id = "cbi-<%=self.config%>-<%=section%>" >
2008-04-11 18:29:19 +00:00
< % self:render_children(section) %>
< % if #self.optionals[section] > 0 or self.dynamic then %>
< div class = "cbi-optionals" >
< % if self.dynamic then %>
< input type = "text" name = "cbi.opt.<%=self.config%>.<%=section%>" / >
< % else %>
< select name = "cbi.opt.<%=self.config%>.<%=section%>" >
< option > < %:cbi_addopt -- Feld --%>< / option >
< % for key, val in pairs(self.optionals[section]) do %>
< option id = "cbi-<%=self.config.." - " . . section . . " - " . . val . option % > " value="< %=val.option%>">< %=val.title%>< / option >
< % end %>
< / select >
< script type = "text/javascript" > < % f o r k e y , v a l i n p a i r s ( s e l f . o p t i o n a l s [ s e c t i o n ] ) d o % >
< % if #val.deps > 0 then %>< % for j, d in ipairs(val.deps) do %>cbi_d_add("cbi-< %=self.config.."-"..section.."-"..val.option%>", "cbid.< %=self.config.."."..section.."."..d.field%>", "< %=d.value%>");
< % end %>< % end %>
< % end %>< / script >
< % end %>
< input type = "submit" value = "<%:add hinzufügen%>" / >
< / div >
< % end %>
2008-04-27 20:53:32 +00:00
< / div >
2008-04-11 18:29:19 +00:00
< br / >