liquid_feedback_frontend
changeset 1392:41e3da074385
Changed style of register image upload 2
author | bsw |
---|---|
date | Mon Aug 13 19:19:19 2018 +0200 (2018-08-13) |
parents | 68eb999c7bfb |
children | a0ee4204f6c1 |
files | app/main/registration/_register_form.lua |
line diff
1.1 --- a/app/main/registration/_register_form.lua Mon Aug 13 19:17:47 2018 +0200 1.2 +++ b/app/main/registration/_register_form.lua Mon Aug 13 19:19:19 2018 +0200 1.3 @@ -106,10 +106,11 @@ 1.4 1.5 elseif field.type == "image" then 1.6 slot.put("<br />") 1.7 - 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 .. ":" } 1.8 + 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.9 + slot.put("<br />") 1.10 ui.script{ script = [[ 1.11 function getFile(){ 1.12 - document.getElementById("upfile").click(); 1.13 + document.getElementById("fileInput").click(); 1.14 } 1.15 function fileChoosen(obj){ 1.16 var file = obj.value; 1.17 @@ -119,7 +120,7 @@ 1.18 } 1.19 ]] } 1.20 ui.tag{ attr = { id = "fileBtn", onclick = "getFile();"}, content = field.upload_label } 1.21 - ui.tag{ tag = "input", attr = { style = "display: none;", type = "file", name = "verification_data_" .. field.name, onchange = "fileChoosen(this);" } } 1.22 + ui.tag{ tag = "input", attr = { id = "fileInput", style = "display: none;", type = "file", name = "verification_data_" .. field.name, onchange = "fileChoosen(this);" } } 1.23 if field.optional_checkbox then 1.24 slot.put(" ") 1.25 ui.tag{ tag = "label", attr = {