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>
Sun, 22 Jul 2018 15:45:03 +0000 (17:45 +0200)
commit8e0ee137a67c3e924c2a3827968b6f3f1d7ce9f4
tree986f0ae29130ef35bc905225360c10248473ea7e
parenta8a5b2feb23f0b3662f03d9fa71f211ab30fe6d9
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>
modules/luci-base/luasrc/view/cbi/cell_valueheader.htm