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