1 <div class=
"cbi-section-node" id=
"cbi-<%=self.config%>-<%=section%>">
2 <% self:render_children(section) %
>
3 <% if #self.optionals[section]
> 0 or self.dynamic then %
>
4 <div class=
"cbi-optionals">
5 <% if self.dynamic then %
>
6 <input type=
"text" name=
"cbi.opt.<%=self.config%>.<%=section%>" />
8 <select name=
"cbi.opt.<%=self.config%>.<%=section%>">
9 <option><%:cbi_addopt -- Feld --%
></option>
10 <% for key, val in pairs(self.optionals[section]) do %
>
11 <option id=
"cbi-<%=self.config.."-
"..section.."-
"..val.option%>" value=
"<%=val.option%>"><%=val.title%
></option>
14 <script type=
"text/javascript"><% for key, val in pairs(self.optionals[section]) do %
>
15 <% 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%>");
19 <input type=
"submit" value=
"<%:add hinzufügen%>" />