liquid_feedback_frontend
changeset 1330:8af26e885745
Added registration field type image
author | bsw |
---|---|
date | Fri Aug 03 17:09:42 2018 +0200 (2018-08-03) |
parents | 1a55c68445d4 |
children | 5bbec1fd769d |
files | app/main/registration/_register_form.lua |
line diff
1.1 --- a/app/main/registration/_register_form.lua Fri Aug 03 17:07:06 2018 +0200 1.2 +++ b/app/main/registration/_register_form.lua Fri Aug 03 17:09:42 2018 +0200 1.3 @@ -86,6 +86,10 @@ 1.4 } 1.5 slot.put("<br />") 1.6 1.7 + elseif field.type == "image" then 1.8 + ui.tag{ tag = "label", content = field.label } 1.9 + ui.tag{ tag = "input", type = "file", name = field.name } 1.10 + 1.11 elseif field.name == "unit" then 1.12 local units_selector = Unit:new_selector() 1.13 :add_where{ "active" }