From 8714ac8f2ae1f4f039b6a25b7a3ef38e1e6d69f5 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 27 Jun 2018 20:06:13 +0200 Subject: util.dataforms: Add support for field descriptions in --- util/dataforms.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'util/dataforms.lua') diff --git a/util/dataforms.lua b/util/dataforms.lua index 7b832f78..e48f6879 100644 --- a/util/dataforms.lua +++ b/util/dataforms.lua @@ -38,6 +38,10 @@ function form_t.form(layout, data, formtype) -- Add field tag form:tag("field", { type = field_type, var = field.name, label = field.label }); + if field.desc then + form:text_tag("desc", field.desc); + end + local value = (data and data[field.name]) or field.value; if value then -- cgit v1.2.3