liquid_feedback_frontend

changeset 1380:276718aedd90

Show label for drop down boxes
author bsw
date Wed Aug 08 17:38:23 2018 +0200 (2018-08-08)
parents 4b558772a66d
children 574eaf2ff457
files app/main/registration/_register_form.lua
line diff
     1.1 --- a/app/main/registration/_register_form.lua	Wed Aug 08 17:37:04 2018 +0200
     1.2 +++ b/app/main/registration/_register_form.lua	Wed Aug 08 17:38:23 2018 +0200
     1.3 @@ -88,10 +88,12 @@
     1.4        slot.put("<br />")
     1.5      
     1.6      elseif field.type == "dropdown" then
     1.7 -      local options = { { id = "", name = field.label } }
     1.8 +      local options = { { id = "", name = "" } }
     1.9        for i_options, option in ipairs(field.options) do
    1.10          table.insert(options, option)
    1.11        end
    1.12 +      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 .. ":" }
    1.13 +      slot.put(" &nbsp; ")
    1.14        ui.field.select{
    1.15          container_attr = { style = "display: inline-block; " },
    1.16          attr = { class = class },

Impressum / About Us