diff options
author | Steven Barth <steven@midlink.org> | 2008-03-25 23:34:21 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-03-25 23:34:21 +0000 |
commit | 5f9910566de7165f4bb0ee62bc3ace53c708a94e (patch) | |
tree | da06cbacc22d9d74b1e160e6dcf19fe0f62fa432 /src/ffluci/view/cbi/nsection.htm | |
parent | 9fa7e0e92ddae9ff68f50ad20bbdfc8a3c09135a (diff) |
* Entering Version 0.2
* Completed CBI
* Minor bugfixes and enhancements
Diffstat (limited to 'src/ffluci/view/cbi/nsection.htm')
-rw-r--r-- | src/ffluci/view/cbi/nsection.htm | 37 |
1 files changed, 32 insertions, 5 deletions
diff --git a/src/ffluci/view/cbi/nsection.htm b/src/ffluci/view/cbi/nsection.htm index 84f893d2b8..80dcefc07c 100644 --- a/src/ffluci/view/cbi/nsection.htm +++ b/src/ffluci/view/cbi/nsection.htm @@ -1,7 +1,34 @@ - <div class="cbi-nsection" id="cbi-<%=self.config%>-<%=self.section%>"> +<% if self:ucivalue(self.section) then %> + <div class="cbi-section" id="cbi-<%=self.config%>-<%=self.section%>"> <h2><%=self.title%></h2> - <div class="cbi-nsection-descr"><%=self.description%></div> - <div class="cbi-nsection-options"> -<% self:render_children() %> - </div> + <div class="cbi-section-descr"><%=self.description%></div> + <fieldset class="cbi-section-node"> +<% self:render_children(self.section) %> + <% if #self.optionals > 0 or self.dynamic then %> + <div class="cbi-optionals"> + <% if self.dynamic then %> + <input type="text" name="cbi.opt.<%=self.config%>.<%=self.section%>" /> + <% else %> + <select name="cbi.opt.<%=self.config%>.<%=self.section%>"> + <option><%:cbi_selopt *** Zusätzliche Felder ***%></option> + <% for key, val in pairs(self.optionals) do %> + <option value="<%=val.option%>"><%=val.title%></option> + <% end %> + </select> + <% end %> + <input type="submit" value="<%:cbi_addopt Feld hinzufügen%>" /> + </div> + <% end %> + <br /> + <% if self.addremove then %> + <input type="submit" name="cbi.rns.<%=self.config%>.<%=self.section%>" value="<%:cbi_del Eintrag entfernen%>" /> + <% end %> + </fieldset> </div> +<% elseif self.addremove then %> + <div class="cbi-section" id="cbi-<%=self.config%>-<%=self.section%>"> + <h2><%=self.title%></h2> + <div class="cbi-section-descr"><%=self.description%></div> + <input type="submit" name="cbi.cns.<%=self.config%>.<%=self.section%>" value="<%:cbi_cns Eintrag anlegen%>" /> + </div> +<% end %> |