liquid_feedback_frontend

view app/main/registration/register_enter_pin.lua @ 1858:3d1f0464a3ea

Handle missing ldap.member.allowed function
author bsw
date Tue Sep 20 17:35:29 2022 +0200 (20 months ago)
parents 32cc544d5a5b
children
line source
1 local id = param.get_id()
2 local verification = Verification:by_id(id)
3 local invalid_pin = param.get("invalid_pin", atom.boolean)
5 ui.title(_"Self registration")
6 app.html_title.title = _"Self registration"
8 ui.container{ attr = { class = "mdl-grid" }, content = function()
9 ui.container{ attr = { class = "mdl-cell mdl-cell--12-col" }, content = function()
11 ui.heading{ content = _"PIN page" }
12 slot.put("<br />")
13 ui.container { content = _"You should receive a PIN code via SMS shortly. Please enter the PIN." }
15 if invalid_pin then
16 slot.put("<br />")
17 ui.container { attr = { class = "warning" }, content = _"Invalid PIN, please try again!" }
18 slot.put("<br />")
19 end
21 ui.form{
22 module = "registration", action = "register_pin", id = verification.id,
23 content = function()
24 ui.field.text{
25 container_attr = { class = "mdl-textfield mdl-js-textfield mdl-textfield--floating-label" },
26 attr = { id = "pin", class = "mdl-textfield__input", autofocus = "autofocus" },
27 label_attr = { class = "mdl-textfield__label", ["for"] = "pin" },
28 label = "PIN code",
29 name = "pin"
30 }
32 slot.put("<br />")
34 ui.tag{
35 tag = "input",
36 attr = {
37 type = "submit",
38 class = "mdl-button mdl-js-button mdl-button--raised mdl-button--colored",
39 value = _"Proceed with registration"
40 }
41 }
43 slot.put("<br /><br />")
45 ui.heading{ content = _"No PIN code received?" }
46 slot.put("<br />")
47 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." }
49 slot.put("<br />")
51 ui.tag{
52 tag = "input",
53 attr = {
54 name = "manual_verification",
55 type = "submit",
56 class = "mdl-button mdl-js-button mdl-button--raised",
57 value = _"Start manual verification"
58 }
59 }
61 end
62 }
65 end }
66 end }

Impressum / About Us