liquid_feedback_frontend
changeset 1313:7cdc685bb7a6
Added optional registration fields
author | bsw |
---|---|
date | Wed Aug 01 17:21:01 2018 +0200 (2018-08-01) |
parents | a9406a081d6d |
children | 74ce9970605b |
files | app/main/registration/_register_form.lua |
line diff
1.1 --- a/app/main/registration/_register_form.lua Wed Aug 01 17:08:34 2018 +0200 1.2 +++ b/app/main/registration/_register_form.lua Wed Aug 01 17:21:01 2018 +0200 1.3 @@ -9,6 +9,10 @@ 1.4 end 1.5 if field.name == "date_of_birth" then 1.6 slot.put("<br />") 1.7 + local label = field.label 1.8 + if field.optional then 1.9 + label = label .. config.self_registration.optional_field_indicator 1.10 + end 1.11 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.12 slot.put(" ") 1.13 local days = { { id = 0, name = _"day" } }