Software /
code /
clix
Changeset
124:ff422623e0ba
clix.adhoc: Print form title and instructions if available
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 21 Mar 2016 16:11:54 +0100 |
parents | 123:c61fadb9d4fa |
children | 125:75902417ff05 |
files | clix/adhoc.lua |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/clix/adhoc.lua Mon Mar 21 16:06:14 2016 +0100 +++ b/clix/adhoc.lua Mon Mar 21 16:11:54 2016 +0100 @@ -54,6 +54,14 @@ if cmd.form then local command_form_layout = dataforms.from_stanza(cmd.form) local data = command_form_layout:data(cmd.form); + if data.title then + print("= " .. data.title .. " ="); + print() + end + if data.instructions then + print(data.instructions); + print() + end for i, item in ipairs(command_form_layout) do if item.type ~= "hidden" then print("== " .. item.name .. " ==")