libs/cbi: implement .sectiontitle callback for tblsections to allow custom per-row titles
This commit is contained in:
parent
bf8a7d61cf
commit
cb0718b9f7
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ end
|
||||||
-%>
|
-%>
|
||||||
<tr class="cbi-section-table-row<% if self.extedit or self.rowcolors then %> cbi-rowstyle-<%=rowstyle()%><% end %>" id="cbi-<%=self.config%>-<%=section%>">
|
<tr class="cbi-section-table-row<% if self.extedit or self.rowcolors then %> cbi-rowstyle-<%=rowstyle()%><% end %>" id="cbi-<%=self.config%>-<%=section%>">
|
||||||
<% if not self.anonymous then -%>
|
<% if not self.anonymous then -%>
|
||||||
<th><h3><%=k%></h3></th>
|
<th><h3><%=(type(self.sectiontitle) == "function") and self:sectiontitle(section) or k%></h3></th>
|
||||||
<%- end %>
|
<%- end %>
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue