# HG changeset patch # User bsw # Date 1533742830 -7200 # Node ID 8f4ed517bc09ac50f7a547151a79172e6d3ef538 # Parent 574eaf2ff45785a9ee4679468b462bcbfdaab0e7 Format of special labels diff -r 574eaf2ff457 -r 8f4ed517bc09 app/main/registration/_register_form.lua --- a/app/main/registration/_register_form.lua Wed Aug 08 17:39:16 2018 +0200 +++ b/app/main/registration/_register_form.lua Wed Aug 08 17:40:30 2018 +0200 @@ -106,8 +106,8 @@ slot.put("
") elseif field.type == "image" then - ui.tag{ tag = "label", content = field.label } - slot.put(" ") + 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.tag{ tag = "input", attr = { type = "file", name = "verification_data_" .. field.name } } if field.optional_checkbox then ui.tag{ tag = "label", attr = { @@ -151,8 +151,9 @@ for i_unit, unit in ipairs(units_selector:exec()) do table.insert(units, unit) 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{ - label = field.label, foreign_records = units, foreign_id = "id", foreign_name = "name",