liquid_feedback_frontend

changeset 1321:a0d6c347ce7f

Configureable text when rejected because of age
author bsw
date Wed Aug 01 18:05:18 2018 +0200 (2018-08-01)
parents cb5c83df949f
children b62de5ebabfa
files app/main/registration/register_rejected_age.lua
line diff
     1.1 --- a/app/main/registration/register_rejected_age.lua	Wed Aug 01 17:53:22 2018 +0200
     1.2 +++ b/app/main/registration/register_rejected_age.lua	Wed Aug 01 18:05:18 2018 +0200
     1.3 @@ -4,15 +4,18 @@
     1.4  ui.container{ attr = { class = "mdl-grid" }, content = function()
     1.5    ui.container{ attr = { class = "mdl-cell mdl-cell--12-col" }, content = function()
     1.6  
     1.7 -    ui.heading{ content = _"Registration rejected" }
     1.8 -    slot.put("<br />")
     1.9 -    ui.container { content = function()
    1.10 -      ui.tag { content = _"Sorry, but you need to be at least 16 years old to participate. You can " }
    1.11 -      ui.link{ content = _"browse the platform as a guest", module = "index", view = "index" }
    1.12 -      ui.tag{ content = "." }
    1.13 -    end }
    1.14 -    slot.put("<br />")
    1.15 -
    1.16 +    if config.self_registration.rejected_age_text then
    1.17 +      slot.put(config.self_registration.rejected_age_text)
    1.18 +    else
    1.19 +      ui.heading{ content = _"Registration rejected" }
    1.20 +      slot.put("<br />")
    1.21 +      ui.container { content = function()
    1.22 +        ui.tag { content = _"Sorry, but you need to be at least 16 years old to participate. You can " }
    1.23 +        ui.link{ content = _"browse the platform as a guest", module = "index", view = "index" }
    1.24 +        ui.tag{ content = "." }
    1.25 +      end }
    1.26 +      slot.put("<br />")
    1.27 +    end
    1.28      
    1.29    end }
    1.30  end }

Impressum / About Us