summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-compat/luasrc/view/cbi/cell_valueheader.htm
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-04-09 14:24:46 +0200
committerJo-Philipp Wich <jo@mein.io>2021-04-09 14:29:12 +0200
commit2155868175fdf1de273cafc0b37b1b9fd5900b04 (patch)
tree852c27b915cdc0ce30aaa6d20ab5ab9c1ab8ff38 /modules/luci-compat/luasrc/view/cbi/cell_valueheader.htm
parentdb00103547f0c44844c1ca913b4c7ef34c8b13ab (diff)
luci-compat: update markup for CBI TableSections
Update legacy CBI markup to use actual table, tr, th and td elements instead of using div element corresponding table classes. Fixes compatibility with OpenWrt 2020 theme. Ref: https://github.com/openwrt/luci/issues/4972 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-compat/luasrc/view/cbi/cell_valueheader.htm')
-rw-r--r--modules/luci-compat/luasrc/view/cbi/cell_valueheader.htm2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-compat/luasrc/view/cbi/cell_valueheader.htm b/modules/luci-compat/luasrc/view/cbi/cell_valueheader.htm
index db5c66850d..31d1acee48 100644
--- a/modules/luci-compat/luasrc/view/cbi/cell_valueheader.htm
+++ b/modules/luci-compat/luasrc/view/cbi/cell_valueheader.htm
@@ -3,7 +3,7 @@
local descr = luci.util.trim(striptags(self.description))
local ftype = self.typename or (self.template and self.template:gsub("^.+/", ""))
-%>
-<div class="td cbi-value-field<% if self.error and self.error[section] then %> cbi-value-error<% end %><% if self.password then %> nowrap<% end %>"<%=
+<td class="td cbi-value-field<% if self.error and self.error[section] then %> cbi-value-error<% end %><% if self.password then %> nowrap<% end %>"<%=
attr("data-name", self.option) ..
ifattr(ftype and #ftype > 0, "data-widget", ftype) ..
ifattr(title and #title > 0, "data-title", title, true) ..