* CBI: Generalized templates
[project/luci.git] / src / ffluci / 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 k, v in pairs(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 <%+cbi/ucisection%>
11 <% end %>
12 <% if self.addremove then %>
13 <div class="cbi-section-create">
14 <% if self.anonymous then %>
15 <input type="submit" name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>" value="<%:cbi_add Eintrag hinzufügen%>" />
16 <% else %><input type="text" class="cbi-section-create-name" name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>" />
17 <input type="submit" value="<%:cbi_add Eintrag hinzufügen%>" />
18 <% end %><% if self.err_invalid then %><div class="cbi-error"><%:cbi_invalid Fehler: Ungültige Eingabe%></div><% end %>
19 </div>
20 <% end %>
21 </div>