liquid_feedback_frontend

view app/main/index/confirm_notify_email.lua @ 1858:3d1f0464a3ea

Handle missing ldap.member.allowed function
author bsw
date Tue Sep 20 17:35:29 2022 +0200 (20 months ago)
parents 61ed6a12c6b8
children
line source
1 ui.title(_"Email address confirmation")
3 ui.grid{ content = function()
4 ui.cell_full{ content = function()
5 ui.container { attr = { class = "mdl-card mdl-shadow--2dp mdl-card__fullwidth" }, content = function()
6 ui.container{ attr = { class = "mdl-card__title mdl-card--border" }, content = function()
7 ui.heading { attr = { class = "mdl-card__title-text" }, level = 2, content = _"Email address confirmation" }
8 end }
9 ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function()
10 ui.form{
11 attr = { class = "vertical" },
12 module = "index",
13 action = "confirm_notify_email",
14 routing = {
15 ok = {
16 mode = "redirect",
17 module = "index",
18 view = "index"
19 }
20 },
21 content = function()
22 local secret = param.get("secret")
23 if secret then
24 ui.field.hidden{
25 name = "secret",
26 value = secret
27 }
28 else
29 ui.field.text{
30 label = _"Confirmation code",
31 name = "secret"
32 }
33 end
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 = _'Confirm'
40 }
41 }
42 end
43 }
45 end }
46 end }
47 end }
48 end }

Impressum / About Us