-%>
+<!-- tblsection -->
<div class="cbi-section" id="cbi-<%=self.config%>-<%=self.sectiontype%>">
<h2><%=self.title%></h2>
<div class="cbi-section-descr"><%=self.description%></div>
<th class="cbi-section-table-cell"> </th>
<%- end -%>
</tr>
- <%- for i, k in ipairs(self:cfgsections()) do
+ <%- local isempty = true
+ for i, k in ipairs(self:cfgsections()) do
if not self.anonymous then
-%>
<tr class="cbi-section-table-title">
</tr>
<%- end
section = k
+ isempty = false
scope = { valueheader = "cbi/cell_valueheader", valuefooter = "cbi/cell_valuefooter" }
-%>
<tr class="cbi-section-table-row" id="cbi-<%=self.config%>-<%=section%>">
<%-+cbi/ucisection-%>
<%- if self.addremove then -%>
<td class="cbi-section-table-cell">
- <input type="submit" name="cbi.rts.<%=self.config%>.<%=k%>" value="X" />
+ <input type="submit" name="cbi.rts.<%=self.config%>.<%=k%>" value="X" title="<%:delete%>" />
</td>
<%- end -%>
</tr>
<%- end -%>
+ <%- if isempty then -%>
+ <tr class="cbi-section-table-row">
+ <td colspan="<%=count%>"><em><br /><%:cbi_sectempty%></em></td>
+ </tr>
+ <%- end -%>
+
<%- if self.addremove then -%>
<tr class="cbi-section-table-row">
<td colspan="<%=count%>" class="cbi-section-table-optionals">
</table>
</div>
</div>
+<!-- /tblsection -->