summaryrefslogtreecommitdiffhomepage
path: root/src/ffluci/view/cbi/ucisection.htm
diff options
context:
space:
mode:
Diffstat (limited to 'src/ffluci/view/cbi/ucisection.htm')
-rw-r--r--src/ffluci/view/cbi/ucisection.htm23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/ffluci/view/cbi/ucisection.htm b/src/ffluci/view/cbi/ucisection.htm
new file mode 100644
index 0000000000..ef1b6cb0e1
--- /dev/null
+++ b/src/ffluci/view/cbi/ucisection.htm
@@ -0,0 +1,23 @@
+ <fieldset class="cbi-section-node" id="cbi-<%=self.config%>-<%=section%>">
+<% 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"><% for key, val in pairs(self.optionals[section]) do %>
+ <% 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 %>
+ </fieldset>
+ <br /> \ No newline at end of file