diff options
author | Steven Barth <steven@midlink.org> | 2008-03-28 11:00:58 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-03-28 11:00:58 +0000 |
commit | fb2a9a328d619ecf329e64cb500ff1385e3f8290 (patch) | |
tree | 1a87e35efbfe276d7dbf850fa53fe85578bdbbfe /src/ffluci/view/cbi/tsection.htm | |
parent | 7e9c97808d27443d6d02a163d9ef0a8bc295f396 (diff) |
* CBI: Generalized templates
* admin > network > ifaces: Set default value for protocol allowing new sections to be created.
Diffstat (limited to 'src/ffluci/view/cbi/tsection.htm')
-rw-r--r-- | src/ffluci/view/cbi/tsection.htm | 39 |
1 files changed, 9 insertions, 30 deletions
diff --git a/src/ffluci/view/cbi/tsection.htm b/src/ffluci/view/cbi/tsection.htm index ffeb91575b..012ae063a8 100644 --- a/src/ffluci/view/cbi/tsection.htm +++ b/src/ffluci/view/cbi/tsection.htm @@ -6,37 +6,16 @@ <input type="submit" name="cbi.rts.<%=self.config%>.<%=k%>" value="<%:cbi_del Eintrag entfernen%>" /> </div><% end %> <% if not self.anonymous then %><h3><%=k%></h3><% end %> - <fieldset class="cbi-section-node" id="cbi-<%=self.config%>-<%=k%>"> -<% self:render_children(k) %> - <% if #self.optionals[k] > 0 or self.dynamic then %> - <div class="cbi-optionals"> - <% if self.dynamic then %> - <input type="text" name="cbi.opt.<%=self.config%>.<%=k%>" /> - <% else %> - <select name="cbi.opt.<%=self.config%>.<%=k%>"> - <option><%:cbi_addopt -- Feld --%></option> - <% for key, val in pairs(self.optionals[k]) do %> - <option id="cbi-<%=self.config.."-"..k.."-"..val.option%>" value="<%=val.option%>"><%=val.title%></option> - <% end %> - </select> - <script type="text/javascript"><% for key, val in pairs(self.optionals[k]) do %> - <% if #val.deps > 0 then %><% for j, d in ipairs(val.deps) do %>cbi_d_add("cbi-<%=self.config.."-"..k.."-"..val.option%>", "cbid.<%=self.config.."."..k.."."..d.field%>", "<%=d.value%>"); - <% end %><% end %> - <% end %></script> - <% end %> - <input type="submit" value="<%:add hinzufügen%>" /> - </div> - <% end %> - </fieldset> - <br /> +<% section = k %> +<%+cbi/ucisection%> <% end %> <% if self.addremove then %> - <div class="cbi-section-create"> - <% if self.anonymous then %> - <input type="submit" name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>" value="<%:cbi_add Eintrag hinzufügen%>" /> - <% else %><input type="text" class="cbi-section-create-name" name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>" /> - <input type="submit" value="<%:cbi_add Eintrag hinzufügen%>" /> - <% end %><% if self.err_invalid then %><div class="cbi-error"><%:cbi_invalid Fehler: Ungültige Eingabe%></div><% end %> - </div> + <div class="cbi-section-create"> + <% if self.anonymous then %> + <input type="submit" name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>" value="<%:cbi_add Eintrag hinzufügen%>" /> + <% else %><input type="text" class="cbi-section-create-name" name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>" /> + <input type="submit" value="<%:cbi_add Eintrag hinzufügen%>" /> + <% end %><% if self.err_invalid then %><div class="cbi-error"><%:cbi_invalid Fehler: Ungültige Eingabe%></div><% end %> + </div> <% end %> </div> |