liquid_feedback_frontend
diff app/main/registration/_register_form.lua @ 1423:4232b30dfb11
Allow additional comments in registration form
| author | bsw |
|---|---|
| date | Thu Sep 20 13:49:19 2018 +0200 (2018-09-20) |
| parents | 6c9729cbff73 |
| children | 63ce1a5c05c1 |
line diff
1.1 --- a/app/main/registration/_register_form.lua Tue Sep 04 10:11:01 2018 +0200 1.2 +++ b/app/main/registration/_register_form.lua Thu Sep 20 13:49:19 2018 +0200 1.3 @@ -8,7 +8,9 @@ 1.4 class = " is-invalid" 1.5 end 1.6 if not field.internal then 1.7 - if field.name == "date_of_birth" then 1.8 + if field.type == "comment" then 1.9 + ui.tag { content = field.label } 1.10 + elseif field.name == "date_of_birth" then 1.11 local label = field.label 1.12 if field.optional then 1.13 label = label .. config.self_registration.optional_field_indicator