liquid_feedback_frontend
view app/main/index/confirm_notify_email.lua @ 1680:6f28933dbc36
Fixed layout, do not show secret when set via link
author | bsw |
---|---|
date | Mon Sep 20 09:21:21 2021 +0200 (2021-09-20) |
parents | ad207be24c7a |
children | b155969acc6c |
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 label = _"Confirmation code",
26 name = "secret",
27 value = secret
28 }
29 else
30 ui.field.text{
31 label = _"Confirmation code",
32 name = "secret"
33 }
34 end
35 ui.tag{
36 tag = "input",
37 attr = {
38 type = "submit",
39 class = "mdl-button mdl-js-button mdl-button--raised mdl-button--colored",
40 value = _'Confirm'
41 }
42 }
43 end
44 }
46 end }
47 end }
48 end)
49 end)