* 3rd Package reorgnaisation
[project/luci.git] / libs / cbi / src / view / cbi / tblsection.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 <div class="cbi-section-node">
5 <div class="cbi-section-row">
6 <% for i, k in pairs(self.children) do %>
7 <div class="cbi-section-row-head"><%=k.title%></div>
8 <% end %>
9 </div>
10 <div class="cbi-section-row">
11 <% for i, k in pairs(self.children) do %>
12 <div class="cbi-section-row-descr"><%=k.description%></div>
13 <% end %>
14 </div>
15 <% for i, k in ipairs(self:cfgsections()) do%>
16 <% if not self.anonymous then %><h3 class="table-cell"><%=k%></h3><% end %>
17 <%
18 section = k
19 scope = {valueheader = "cbi/tiny_valueheader", valuefooter = "cbi/tiny_valuefooter"}
20 %>
21 <div class="cbi-section-row" id="cbi-<%=self.config%>-<%=section%>">
22 <%+cbi/ucisection%>
23 <% if self.addremove then %><div class="cbi-section-remove table-cell">
24 <input type="submit" name="cbi.rts.<%=self.config%>.<%=k%>" value="X" />
25 </div><% end %>
26 </div>
27 <% end %>
28 <% if self.addremove then %>
29 <div class="cbi-section-create">
30 <% if self.anonymous then %>
31 <input type="submit" name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>" value="<%:cbi_add Eintrag hinzufügen%>" />
32 <% else %>
33 <input type="text" class="cbi-section-create-name" name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>" />
34 <input type="submit" value="<%:cbi_add Eintrag hinzufügen%>" />
35 <% end %><% if self.err_invalid then %><div class="cbi-error"><%:cbi_invalid Fehler: Ungültige Eingabe%></div><% end %>
36 </div>
37 </div>
38 <% end %>
39 </div>