# HG changeset patch # User bsw # Date 1533308982 -7200 # Node ID 8af26e88574511b1c1046c989559e2bb1a55126a # Parent 1a55c68445d4b3ee73c0bb5750615f15874a727b Added registration field type image diff -r 1a55c68445d4 -r 8af26e885745 app/main/registration/_register_form.lua --- a/app/main/registration/_register_form.lua Fri Aug 03 17:07:06 2018 +0200 +++ b/app/main/registration/_register_form.lua Fri Aug 03 17:09:42 2018 +0200 @@ -86,6 +86,10 @@ } slot.put("
") + elseif field.type == "image" then + ui.tag{ tag = "label", content = field.label } + ui.tag{ tag = "input", type = "file", name = field.name } + elseif field.name == "unit" then local units_selector = Unit:new_selector() :add_where{ "active" }