diff options
Diffstat (limited to 'src/ffluci/view/cbi/tsection.htm')
-rw-r--r-- | src/ffluci/view/cbi/tsection.htm | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/ffluci/view/cbi/tsection.htm b/src/ffluci/view/cbi/tsection.htm index 9205095313..15272f05f6 100644 --- a/src/ffluci/view/cbi/tsection.htm +++ b/src/ffluci/view/cbi/tsection.htm @@ -2,8 +2,11 @@ <h2><%=self.title%></h2> <div class="cbi-section-descr"><%=self.description%></div> <% for k, v in pairs(self:cfgsections()) do%> - <fieldset class="cbi-section-node" id="cbi-<%=self.config%>-<%=k%>"> + <% if self.addremove then %><div class="cbi-section-remove right"> + <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"> @@ -11,19 +14,19 @@ <input type="text" name="cbi.opt.<%=self.config%>.<%=k%>" /> <% else %> <select name="cbi.opt.<%=self.config%>.<%=k%>"> - <option><%:cbi_selopt *** Zusätzliche Parameter ***%></option> + <option><%:cbi_addopt -- Feld --%></option> <% for key, val in pairs(self.optionals[k]) do %> - <option value="<%=val.option%>"><%=val.title%></option> + <option id="cbi-<%=self.config.."-"..k.."-"..val.option%>" value="<%=val.option%>"><%=val.title%></option> + <% if #val.deps > 0 then %><script type="text/javascript"> + <% 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 %> + </script><% end %> <% end %> </select> <% end %> - <input type="submit" value="<%:cbi_addopt Feld hinzufügen%>" /> + <input type="submit" value="<%:add hinzufügen%>" /> </div> <% end %> - <br /> - <% if self.addremove then %> - <input type="submit" name="cbi.rts.<%=self.config%>.<%=k%>" value="<%:cbi_del Eintrag entfernen%>" /> - <% end %> </fieldset> <br /> <% end %> |