diff options
author | Oldřich Jedlička <oldium.pro@gmail.com> | 2020-10-24 19:18:20 +0200 |
---|---|---|
committer | Oldřich Jedlička <oldium.pro@gmail.com> | 2020-10-24 19:19:03 +0200 |
commit | 4775d1ad226b39eb4b0981c89f2407c91a8c3102 (patch) | |
tree | 2b9db02e1b4b9030bbc675b38c6a56953a6642ef /modules/luci-compat/luasrc/view | |
parent | ebaa50ecd81bdf4888661e1d41ef7e38a1bf3521 (diff) |
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>
Diffstat (limited to 'modules/luci-compat/luasrc/view')
-rw-r--r-- | modules/luci-compat/luasrc/view/cbi/nsection.htm | 4 | ||||
-rw-r--r-- | modules/luci-compat/luasrc/view/cbi/nullsection.htm | 2 | ||||
-rw-r--r-- | modules/luci-compat/luasrc/view/cbi/tsection.htm | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/modules/luci-compat/luasrc/view/cbi/nsection.htm b/modules/luci-compat/luasrc/view/cbi/nsection.htm index faceffeedf..511a59b6f3 100644 --- a/modules/luci-compat/luasrc/view/cbi/nsection.htm +++ b/modules/luci-compat/luasrc/view/cbi/nsection.htm @@ -1,7 +1,7 @@ <% if self:cfgvalue(self.section) then section = self.section %> <div class="cbi-section"> <% if self.title and #self.title > 0 then -%> - <legend><%=self.title%></legend> + <h3><%=self.title%></h3> <%- end %> <% if self.description and #self.description > 0 then -%> <div class="cbi-section-descr"><%=self.description%></div> @@ -19,7 +19,7 @@ <% if self.template_addremove then include(self.template_addremove) else -%> <div class="cbi-section" id="cbi-<%=self.config%>-<%=self.section%>"> <% if self.title and #self.title > 0 then -%> - <legend><%=self.title%></legend> + <h3><%=self.title%></h3> <%- end %> <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%>" /> diff --git a/modules/luci-compat/luasrc/view/cbi/nullsection.htm b/modules/luci-compat/luasrc/view/cbi/nullsection.htm index 7230719d19..156f29d18c 100644 --- a/modules/luci-compat/luasrc/view/cbi/nullsection.htm +++ b/modules/luci-compat/luasrc/view/cbi/nullsection.htm @@ -1,6 +1,6 @@ <div class="cbi-section"> <% if self.title and #self.title > 0 then -%> - <legend><%=self.title%></legend> + <h3><%=self.title%></h3> <%- end %> <% if self.description and #self.description > 0 then -%> <div class="cbi-section-descr"><%=self.description%></div> diff --git a/modules/luci-compat/luasrc/view/cbi/tsection.htm b/modules/luci-compat/luasrc/view/cbi/tsection.htm index b7718fa0f3..45e51cc69f 100644 --- a/modules/luci-compat/luasrc/view/cbi/tsection.htm +++ b/modules/luci-compat/luasrc/view/cbi/tsection.htm @@ -1,6 +1,6 @@ <div class="cbi-section" id="cbi-<%=self.config%>-<%=self.sectiontype%>"> <% if self.title and #self.title > 0 then -%> - <legend><%=self.title%></legend> + <h3><%=self.title%></h3> <%- end %> <% if self.error_msg and #self.error_msg > 0 then -%> <div class="cbi-section-error"> |