* core: Added template for a table view of typed sections
[project/luci.git] / core / src / view / cbi / nsection.htm
1 <% if self:cfgvalue(self.section) then
2 section = self.section %>
3                                 <div class="cbi-section" id="cbi-<%=self.config%>-<%=section%>">
4                                         <h2><%=self.title%></h2>
5                                         <div class="cbi-section-descr"><%=self.description%></div>
6                                         <% if self.addremove then %><div class="cbi-section-remove right">
7                                                 <input type="submit" name="cbi.rns.<%=self.config%>.<%=section%>" value="<%:cbi_del Eintrag entfernen%>" />
8                                         </div><% end %>
9 <div class="cbi-section-node" id="cbi-<%=self.config%>-<%=section%>">
10 <%+cbi/ucisection%>
11 </div>
12 <br />
13                                 </div>
14 <% elseif self.addremove then %>
15                                 <div class="cbi-section" id="cbi-<%=self.config%>-<%=self.section%>">
16                                         <h2><%=self.title%></h2>
17                                         <div class="cbi-section-descr"><%=self.description%></div>
18                                         <input type="submit" name="cbi.cns.<%=self.config%>.<%=self.section%>" value="<%:cbi_add Eintrag anlegen%>" />
19                                 </div>
20 <% end %>