# HG changeset patch # User bsw # Date 1533742703 -7200 # Node ID 276718aedd90a1c08900566d68352a96874c13fe # Parent 4b558772a66d730cde5290be1e392b1c66d9a3e3 Show label for drop down boxes diff -r 4b558772a66d -r 276718aedd90 app/main/registration/_register_form.lua --- a/app/main/registration/_register_form.lua Wed Aug 08 17:37:04 2018 +0200 +++ b/app/main/registration/_register_form.lua Wed Aug 08 17:38:23 2018 +0200 @@ -88,10 +88,12 @@ slot.put("
") elseif field.type == "dropdown" then - local options = { { id = "", name = field.label } } + local options = { { id = "", name = "" } } for i_options, option in ipairs(field.options) do table.insert(options, option) end + ui.tag{ tag = "label", attr = { style = "vertical-align: bottom; border-bottom: 1px solid rgba(0,0,0, 0.12); color: #777; font-size: 16px;" }, content = field.label .. ":" } + slot.put("   ") ui.field.select{ container_attr = { style = "display: inline-block; " }, attr = { class = class },