luci-compat: Replace legend element with h3.
The legend HTML element is allowed only as first element in fieldset, so use h3 instead, which is rendered the same within themes. Fixed #3149. Signed-off-by: Oldřich Jedlička <oldium.pro@gmail.com>
This commit is contained in:
parent
ebaa50ecd8
commit
4775d1ad22
3 changed files with 4 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
||||||
<% if self:cfgvalue(self.section) then section = self.section %>
|
<% if self:cfgvalue(self.section) then section = self.section %>
|
||||||
<div class="cbi-section">
|
<div class="cbi-section">
|
||||||
<% if self.title and #self.title > 0 then -%>
|
<% if self.title and #self.title > 0 then -%>
|
||||||
<legend><%=self.title%></legend>
|
<h3><%=self.title%></h3>
|
||||||
<%- end %>
|
<%- end %>
|
||||||
<% if self.description and #self.description > 0 then -%>
|
<% if self.description and #self.description > 0 then -%>
|
||||||
<div class="cbi-section-descr"><%=self.description%></div>
|
<div class="cbi-section-descr"><%=self.description%></div>
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
<% if self.template_addremove then include(self.template_addremove) else -%>
|
<% if self.template_addremove then include(self.template_addremove) else -%>
|
||||||
<div class="cbi-section" id="cbi-<%=self.config%>-<%=self.section%>">
|
<div class="cbi-section" id="cbi-<%=self.config%>-<%=self.section%>">
|
||||||
<% if self.title and #self.title > 0 then -%>
|
<% if self.title and #self.title > 0 then -%>
|
||||||
<legend><%=self.title%></legend>
|
<h3><%=self.title%></h3>
|
||||||
<%- end %>
|
<%- end %>
|
||||||
<div class="cbi-section-descr"><%=self.description%></div>
|
<div class="cbi-section-descr"><%=self.description%></div>
|
||||||
<input type="submit" class="btn cbi-button cbi-button-add" name="cbi.cns.<%=self.config%>.<%=self.section%>" value="<%:Add%>" />
|
<input type="submit" class="btn cbi-button cbi-button-add" name="cbi.cns.<%=self.config%>.<%=self.section%>" value="<%:Add%>" />
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<div class="cbi-section">
|
<div class="cbi-section">
|
||||||
<% if self.title and #self.title > 0 then -%>
|
<% if self.title and #self.title > 0 then -%>
|
||||||
<legend><%=self.title%></legend>
|
<h3><%=self.title%></h3>
|
||||||
<%- end %>
|
<%- end %>
|
||||||
<% if self.description and #self.description > 0 then -%>
|
<% if self.description and #self.description > 0 then -%>
|
||||||
<div class="cbi-section-descr"><%=self.description%></div>
|
<div class="cbi-section-descr"><%=self.description%></div>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<div class="cbi-section" id="cbi-<%=self.config%>-<%=self.sectiontype%>">
|
<div class="cbi-section" id="cbi-<%=self.config%>-<%=self.sectiontype%>">
|
||||||
<% if self.title and #self.title > 0 then -%>
|
<% if self.title and #self.title > 0 then -%>
|
||||||
<legend><%=self.title%></legend>
|
<h3><%=self.title%></h3>
|
||||||
<%- end %>
|
<%- end %>
|
||||||
<% if self.error_msg and #self.error_msg > 0 then -%>
|
<% if self.error_msg and #self.error_msg > 0 then -%>
|
||||||
<div class="cbi-section-error">
|
<div class="cbi-section-error">
|
||||||
|
|
Loading…
Reference in a new issue