liquid_feedback_frontend
changeset 1367:5656b86cd2cf
Optional optout for image upload
author | bsw |
---|---|
date | Wed Aug 08 17:09:27 2018 +0200 (2018-08-08) |
parents | 378c20a2e6f0 |
children | 15419fb2f050 |
files | app/main/registration/_register_form.lua |
line diff
1.1 --- a/app/main/registration/_register_form.lua Mon Aug 06 14:18:15 2018 +0200 1.2 +++ b/app/main/registration/_register_form.lua Wed Aug 08 17:09:27 2018 +0200 1.3 @@ -90,6 +90,13 @@ 1.4 elseif field.type == "image" then 1.5 ui.tag{ tag = "label", content = field.label } 1.6 ui.tag{ tag = "input", attr = { type = "file", name = "verification_data_" .. field.name } } 1.7 + if field.optional_checkbox then 1.8 + ui.field.boolean{ 1.9 + name = "verification_data_" .. field.name .. "_optout", 1.10 + value = request.get_param{ name = "verification_data_" .. field.name .. "_optout" } and true or false, 1.11 + label = field.optional_checkbox 1.12 + } 1.13 + end 1.14 1.15 elseif field.name == "unit" then 1.16 local units_selector = Unit:new_selector()