* luci/libs: only create <legend> if there is a title in tblsection template
This commit is contained in:
parent
8591d4e396
commit
dfdd557d5d
1 changed files with 3 additions and 1 deletions
|
@ -22,7 +22,9 @@ end
|
||||||
|
|
||||||
<!-- tblsection -->
|
<!-- tblsection -->
|
||||||
<fieldset class="cbi-section" id="cbi-<%=self.config%>-<%=self.sectiontype%>">
|
<fieldset class="cbi-section" id="cbi-<%=self.config%>-<%=self.sectiontype%>">
|
||||||
<legend><%=self.title%></legend>
|
<% if self.title and #self.title > 0 then -%>
|
||||||
|
<legend><%=self.title%></legend>
|
||||||
|
<%- end %>
|
||||||
<div class="cbi-section-descr"><%=self.description%></div>
|
<div class="cbi-section-descr"><%=self.description%></div>
|
||||||
<div class="cbi-section-node">
|
<div class="cbi-section-node">
|
||||||
<%- local count = 0 -%>
|
<%- local count = 0 -%>
|
||||||
|
|
Loading…
Reference in a new issue