liquid_feedback_frontend

changeset 1317:8d0a49d5ed7e

Configureable text when manual verification needed
author bsw
date Wed Aug 01 17:49:26 2018 +0200 (2018-08-01)
parents 186a172c8b9e
children 39447c822336
files app/main/registration/register_manual_check_needed.lua
line diff
     1.1 --- a/app/main/registration/register_manual_check_needed.lua	Wed Aug 01 17:46:20 2018 +0200
     1.2 +++ b/app/main/registration/register_manual_check_needed.lua	Wed Aug 01 17:49:26 2018 +0200
     1.3 @@ -4,19 +4,23 @@
     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 = _"Manual verification needed" }
     1.8 -    slot.put("<br />")
     1.9 -    ui.container { content = function()
    1.10 -      ui.tag{ content = "We are sorry but the automatic verification of personal data has not been successful. We will need to verify your information manually. We apologise for the wait, and thank you for your cooperation. Until your information is verified, you can continue to " }
    1.11 -      ui.link{ content = _"browse the portal as an unregistered user", module = "index", view = "index" }
    1.12 -      ui.tag{ content = "." }
    1.13 -      slot.put("<br /><br />")
    1.14 -      ui.tag{ content = "For problems related to registration and use of the platform, please email " }
    1.15 -      ui.link{ external = "mailto:" .. config.self_registration.contact_email, content = config.self_registration.contact_email }
    1.16 -      ui.tag{ content = "." }
    1.17 -    end }
    1.18 -    slot.put("<br />")
    1.19 -
    1.20 +    if config.self.registration.manual_verification_needed_text then
    1.21 +      slot.put(config.self.registration.manual_verification_needed_text)
    1.22 +    else
    1.23 +      ui.heading{ content = _"Manual verification needed" }
    1.24 +      slot.put("<br />")
    1.25 +      ui.container { content = function()
    1.26 +        ui.tag{ content = "We are sorry but the automatic verification of personal data has not been successful. We will need to verify your information manually. We apologise for the wait, and thank you for your cooperation. Until your information is verified, you can continue to " }
    1.27 +        ui.link{ content = _"browse the portal as an unregistered user", module = "index", view = "index" }
    1.28 +        ui.tag{ content = "." }
    1.29 +        slot.put("<br /><br />")
    1.30 +        ui.tag{ content = "For problems related to registration and use of the platform, please email " }
    1.31 +        ui.link{ external = "mailto:" .. config.self_registration.contact_email, content = config.self_registration.contact_email }
    1.32 +        ui.tag{ content = "." }
    1.33 +      end }
    1.34 +      slot.put("<br />")
    1.35 +    end
    1.36 +    
    1.37    end }
    1.38  end }
    1.39  

Impressum / About Us