* 3rd Package reorgnaisation
[project/luci.git] / libs / cbi / src / view / cbi / tsection.htm
1 <div class="cbi-section" id="cbi-<%=self.config%>-<%=self.sectiontype%>">
2 <h2><%=self.title%></h2>
3 <div class="cbi-section-descr"><%=self.description%></div>
4 <% for i, k in ipairs(self:cfgsections()) do%>
5 <% if self.addremove then %><div class="cbi-section-remove right">
6 <input type="submit" name="cbi.rts.<%=self.config%>.<%=k%>" value="<%:cbi_del Eintrag entfernen%>" />
7 </div><% end %>
8 <% if not self.anonymous then %><h3><%=k%></h3><% end %>
9 <% section = k %>
10 <div class="cbi-section-node" id="cbi-<%=self.config%>-<%=section%>">
11 <%+cbi/ucisection%>
12 </div>
13 <br />
14 <% end %>
15 <% if self.addremove then %>
16 <div class="cbi-section-create">
17 <% if self.anonymous then %>
18 <input type="submit" name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>" value="<%:cbi_add Eintrag hinzufügen%>" />
19 <% else %>
20 <input type="text" class="cbi-section-create-name" name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>" />
21 <input type="submit" value="<%:cbi_add Eintrag hinzufügen%>" />
22 <% end %><% if self.err_invalid then %><div class="cbi-error"><%:cbi_invalid Fehler: Ungültige Eingabe%></div><% end %>
23 </div>
24 <% end %>
25 </div>