* CBI: updates
[project/luci.git] / src / ffluci / view / cbi / tsection.htm
1 <div class="cbi-tsection" id="cbi-<%=self.config%>-<%=self.sectiontype%>">
2 <h2><%=self.title%></h2>
3 <div class="cbi-tsection-descr"><%=self.description%></div>
4 <% for k, v in pairs(self:ucisections()) do%>
5 <fieldset class="cbi-tsection-node" id="cbi-<%=self.config%>-<%=k%>">
6 <% if not self.anonymous then %><legend><%=k%></legend><% end %>
7 <% self:render_children(k) %>
8 <% if self.addremove then %>
9 <input type="submit" name="cbi.rts.<%=self.config%>.<%=k%>" value="<%:cbi_del Eintrag entfernen%>" />
10 <% end %>
11 </fieldset>
12 <br />
13 <% end %>
14 <% if self.addremove then %>
15 <div class="cbi-tsection-create">
16 <% if self.anonymous then %>
17 <input type="submit" name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>" value="<%:cbi_add Eintrag hinzufügen%>" />
18 <% else %><input type="text" class="cbi-tsection-create-name" name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>" />
19 <input type="submit" value="<%:cbi_add Eintrag hinzufügen%>" />
20 <% end %><% if self.err_invalid then %><div class="cbi-error"><%:cbi_invalid Fehler: Ungültiger Wert%></div><% end %>
21 </div>
22 <% end %>
23 </div>