# HG changeset patch # User bsw # Date 1534180759 -7200 # Node ID 41e3da074385cee7323c10a62889d49e6e8e2eb3 # Parent 68eb999c7bfbb5b937151aab31f89ecea6089cf8 Changed style of register image upload 2 diff -r 68eb999c7bfb -r 41e3da074385 app/main/registration/_register_form.lua --- a/app/main/registration/_register_form.lua Mon Aug 13 19:17:47 2018 +0200 +++ b/app/main/registration/_register_form.lua Mon Aug 13 19:19:19 2018 +0200 @@ -106,10 +106,11 @@ elseif field.type == "image" then slot.put("
") - ui.tag{ tag = "label", attr = { style = "display: block; vertical-align: bottom; border-bottom: 1px solid rgba(0,0,0, 0.12); color: #777; font-size: 16px;" }, content = field.label .. ":" } + 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.script{ script = [[ function getFile(){ - document.getElementById("upfile").click(); + document.getElementById("fileInput").click(); } function fileChoosen(obj){ var file = obj.value; @@ -119,7 +120,7 @@ } ]] } ui.tag{ attr = { id = "fileBtn", onclick = "getFile();"}, content = field.upload_label } - ui.tag{ tag = "input", attr = { style = "display: none;", type = "file", name = "verification_data_" .. field.name, onchange = "fileChoosen(this);" } } + ui.tag{ tag = "input", attr = { id = "fileInput", style = "display: none;", type = "file", name = "verification_data_" .. field.name, onchange = "fileChoosen(this);" } } if field.optional_checkbox then slot.put("   ") ui.tag{ tag = "label", attr = {