libs/web: cbi: support description attribute in nullsection instances
This commit is contained in:
parent
a24d340ca4
commit
8cd46b595a
1 changed files with 3 additions and 0 deletions
|
@ -2,6 +2,9 @@
|
|||
<% if self.title and #self.title > 0 then -%>
|
||||
<legend><%=self.title%></legend>
|
||||
<%- end %>
|
||||
<% if self.description and #self.description > 0 then -%>
|
||||
<div class="cbi-section-descr"><%=self.description%></div>
|
||||
<%- end %>
|
||||
<div class="cbi-section-node" id="cbi-<%=self.config%>-<%=tostring(self):sub(8)%>">
|
||||
<div>
|
||||
<% self:render_children(1, scope or {}) %>
|
||||
|
|
Loading…
Reference in a new issue