liquid_feedback_frontend

changeset 1405:6d81bd595b51

Show optional indication in registration form fields
author bsw
date Wed Aug 15 10:05:52 2018 +0200 (2018-08-15)
parents f99e7df399e6
children 428fa9c202b6
files app/main/registration/_register_form.lua
line diff
     1.1 --- a/app/main/registration/_register_form.lua	Mon Aug 13 19:52:00 2018 +0200
     1.2 +++ b/app/main/registration/_register_form.lua	Wed Aug 15 10:05:52 2018 +0200
     1.3 @@ -191,6 +191,10 @@
     1.4            slot.put(" ")
     1.5          end
     1.6        end
     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.field.text{
    1.12          container_attr = { class = "mdl-textfield mdl-js-textfield mdl-textfield--floating-label" .. class },
    1.13          attr = { id = "lf-register__data_" .. field.name, class = "mdl-textfield__input" },

Impressum / About Us