# HG changeset patch # User bsw # Date 1533136861 -7200 # Node ID 7cdc685bb7a6c9e2b3e675017d6451f783e96639 # Parent a9406a081d6d11ab12f0997ec345541dd22fde69 Added optional registration fields diff -r a9406a081d6d -r 7cdc685bb7a6 app/main/registration/_register_form.lua --- a/app/main/registration/_register_form.lua Wed Aug 01 17:08:34 2018 +0200 +++ b/app/main/registration/_register_form.lua Wed Aug 01 17:21:01 2018 +0200 @@ -9,6 +9,10 @@ end if field.name == "date_of_birth" then slot.put("
") + local label = field.label + if field.optional then + label = label .. config.self_registration.optional_field_indicator + end 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 .. ":" } slot.put("   ") local days = { { id = 0, name = _"day" } }