aboutsummaryrefslogtreecommitdiffstats
path: root/util/dataforms.lua
diff options
context:
space:
mode:
Diffstat (limited to 'util/dataforms.lua')
-rw-r--r--util/dataforms.lua4
1 files changed, 4 insertions, 0 deletions
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