liquid_feedback_frontend

diff app/main/registration/register_enter_pin.lua @ 1309:32cc544d5a5b

Cumulative patch for upcoming frontend version 4
author bsw/jbe
date Sun Jul 15 14:07:29 2018 +0200 (2018-07-15)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/app/main/registration/register_enter_pin.lua	Sun Jul 15 14:07:29 2018 +0200
     1.3 @@ -0,0 +1,66 @@
     1.4 +local id = param.get_id()
     1.5 +local verification = Verification:by_id(id)
     1.6 +local invalid_pin = param.get("invalid_pin", atom.boolean)
     1.7 +
     1.8 +ui.title(_"Self registration")
     1.9 +app.html_title.title = _"Self registration"
    1.10 +
    1.11 +ui.container{ attr = { class = "mdl-grid" }, content = function()
    1.12 +  ui.container{ attr = { class = "mdl-cell mdl-cell--12-col" }, content = function()
    1.13 +
    1.14 +    ui.heading{ content = _"PIN page" }
    1.15 +    slot.put("<br />")
    1.16 +    ui.container { content = _"You should receive a PIN code via SMS shortly. Please enter the PIN." }
    1.17 +    
    1.18 +    if invalid_pin then
    1.19 +      slot.put("<br />")
    1.20 +      ui.container { attr = { class = "warning" }, content = _"Invalid PIN, please try again!" }
    1.21 +      slot.put("<br />")
    1.22 +    end
    1.23 +
    1.24 +    ui.form{
    1.25 +      module = "registration", action = "register_pin", id = verification.id,
    1.26 +      content = function()
    1.27 +        ui.field.text{
    1.28 +          container_attr = { class = "mdl-textfield mdl-js-textfield mdl-textfield--floating-label" },
    1.29 +          attr = { id = "pin", class = "mdl-textfield__input", autofocus = "autofocus" },
    1.30 +          label_attr = { class = "mdl-textfield__label", ["for"] = "pin" },
    1.31 +          label = "PIN code",
    1.32 +          name = "pin"
    1.33 +        }
    1.34 +
    1.35 +        slot.put("<br />")
    1.36 +    
    1.37 +        ui.tag{
    1.38 +          tag = "input",
    1.39 +          attr = {
    1.40 +            type = "submit",
    1.41 +            class = "mdl-button mdl-js-button mdl-button--raised mdl-button--colored",
    1.42 +            value = _"Proceed with registration"
    1.43 +          }
    1.44 +        }
    1.45 +
    1.46 +        slot.put("<br /><br />")
    1.47 +        
    1.48 +        ui.heading{ content = _"No PIN code received?" }
    1.49 +        slot.put("<br />")
    1.50 +        ui.container { content = _"If you have not received a PIN code, our team will need to check your registration manually. We will be in touch within two working days. Please accept our apologies for the inconvenience." }
    1.51 +        
    1.52 +        slot.put("<br />")
    1.53 +        
    1.54 +        ui.tag{
    1.55 +          tag = "input",
    1.56 +          attr = {
    1.57 +            name = "manual_verification",
    1.58 +            type = "submit",
    1.59 +            class = "mdl-button mdl-js-button mdl-button--raised",
    1.60 +            value = _"Start manual verification"
    1.61 +          }
    1.62 +        }
    1.63 +
    1.64 +      end
    1.65 +    }
    1.66 +    
    1.67 +    
    1.68 +  end }
    1.69 +end }

Impressum / About Us