liquid_feedback_frontend
diff app/main/registration/register.lua @ 1490:63ce1a5c05c1
Small enhancements for self registration process and management
| author | bsw |
|---|---|
| date | Wed Mar 27 12:40:33 2019 +0100 (2019-03-27) |
| parents | 574eaf2ff457 |
| children |
line diff
1.1 --- a/app/main/registration/register.lua Mon Feb 18 19:46:36 2019 +0100 1.2 +++ b/app/main/registration/register.lua Wed Mar 27 12:40:33 2019 +0100 1.3 @@ -15,7 +15,11 @@ 1.4 }, 1.5 content = function() 1.6 1.7 - ui.container{ content = config.self_registration.info_top } 1.8 + if config.self_registration.info_top_html then 1.9 + slot.put(config.self_registration.info_top_html) 1.10 + else 1.11 + ui.container{ content = config.self_registration.info_top } 1.12 + end 1.13 slot.put("<br />") 1.14 1.15 execute.view{ module = "registration", view = "_register_form" } 1.16 @@ -60,13 +64,17 @@ 1.17 1.18 slot.put("<br />") 1.19 1.20 + local text = _"Proceed with registration" 1.21 + if config.self_registration.manual_invitation then 1.22 + text = _"Register now" 1.23 + end 1.24 ui.tag{ 1.25 tag = "input", 1.26 attr = { 1.27 id = "register_button", 1.28 type = "submit", 1.29 class = "mdl-button mdl-js-button mdl-button--raised mdl-button--colored", 1.30 - value = _"Proceed with registration" 1.31 + value = text 1.32 } 1.33 } 1.34 if config.self_registration.allow_bypass_checks then