(no commit message)
[project/luci.git] / core / src / ffluci / view / cbi / ucisection.htm
1 <fieldset 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%>" />
7 <% else %>
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>
12 <% end %>
13 </select>
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%>");
16 <% end %><% end %>
17 <% end %></script>
18 <% end %>
19 <input type="submit" value="<%:add hinzufügen%>" />
20 </div>
21 <% end %>
22 </fieldset>
23 <br />