1 <% if self:cfgvalue(self.section) then %>
2 <div class="cbi-section" id="cbi-<%=self.config%>-<%=self.section%>">
3 <h2><%=self.title%></h2>
4 <div class="cbi-section-descr"><%=self.description%></div>
5 <% if self.addremove then %><div class="cbi-section-remove">
6 <input type="submit" name="cbi.rns.<%=self.config%>.<%=self.section%>" value="<%:cbi_del Eintrag entfernen%>" />
8 <fieldset class="cbi-section-node">
9 <% self:render_children(self.section) %>
10 <% if #self.optionals[self.section] > 0 or self.dynamic then %>
11 <div class="cbi-optionals">
12 <input type="submit" value="<%:cbi_addopt Feld hinzufügen%>" />
13 <% if self.dynamic then %>
14 <input type="text" name="cbi.opt.<%=self.config%>.<%=self.section%>" />
16 <select name="cbi.opt.<%=self.config%>.<%=self.section%>">
17 <option><%:cbi_selopt *** Zusätzliche Parameter ***%></option>
18 <% for key, val in pairs(self.optionals[self.section]) do %>
19 <option id="cbi-<%=self.config.."-"..self.section.."-"..val.option%>" value="<%=val.option%>"><%=val.title%></option>
22 <script type="text/javascript"><% for key, val in pairs(self.optionals[self.section]) do %>
23 <% if #val.deps > 0 then %><% for j, d in ipairs(val.deps) do %>cbi_d_add("cbi-<%=self.config.."-"..self.section.."-"..val.option%>", "cbid.<%=self.config.."."..self.section.."."..d.field%>", "<%=d.value%>");
31 <% elseif self.addremove then %>
32 <div class="cbi-section" id="cbi-<%=self.config%>-<%=self.section%>">
33 <h2><%=self.title%></h2>
34 <div class="cbi-section-descr"><%=self.description%></div>
35 <input type="submit" name="cbi.cns.<%=self.config%>.<%=self.section%>" value="<%:cbi_cns Eintrag anlegen%>" />