luci-base: add description annotations to tblsection cells
authorJo-Philipp Wich <jo@mein.io>
Sun, 22 Jul 2018 15:40:07 +0000 (17:40 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 26 Jul 2018 18:28:30 +0000 (20:28 +0200)
commit81682971dc42fbe612f5c1bd691b751e5e81daad
tree21492472864f458a9e1a88aa9c80b32da927d19b
parent03b6d77ee3a7b22a914d0a11b5873df4bbce1699
luci-base: add description annotations to tblsection cells

Add a "data-description" attribute to CBI fields which have a description
set, this allows responsive design themes to render a field description
when decomposing the table grid.

Also reuse the precalculated "typename" property if it exists, instead of
deriving it from the template name yet again.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 8e0ee137a67c3e924c2a3827968b6f3f1d7ce9f4)
modules/luci-base/luasrc/view/cbi/cell_valueheader.htm