liquid_feedback_frontend

view app/main/member/settings_email.lua @ 1644:678c7146f27b

Fixed cancel links in member setting views
author bsw
date Tue Feb 09 21:20:01 2021 +0100 (2021-02-09)
parents 32cc544d5a5b
children
line source
1 ui.titleMember(_"Email address")
3 ui.grid{ content = function()
4 ui.cell_main{ content = function()
6 ui.container{ attr = { class = "mdl-card mdl-card__fullwidth mdl-shadow--2dp" }, content = function()
7 ui.container{ attr = { class = "mdl-card__title mdl-card--border" }, content = function()
8 ui.heading { attr = { class = "mdl-card__title-text" }, level = 2, content = _"Email address for notifications" }
9 end }
10 ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function()
12 ui.form{
13 attr = { class = "vertical" },
14 module = "member",
15 action = "update_email",
16 routing = {
17 ok = {
18 mode = "redirect",
19 module = "member",
20 view = "settings"
21 }
22 },
23 content = function()
24 if app.session.member.notify_email then
25 ui.field.text{ label = _"confirmed address", value = app.session.member.notify_email, readonly = true }
26 end
27 if app.session.member.notify_email_unconfirmed then
28 ui.field.text{ label = _"unconfirmed address", value = app.session.member.notify_email_unconfirmed, readonly = true }
29 end
30 if app.session.member.notify_email or app.session.member.notify_email_unconfirmed then
31 slot.put("<br />")
32 end
33 ui.heading { level = 4, content = _"Enter a new email address:" }
34 ui.field.text{
35 container_attr = { class = "mdl-textfield mdl-js-textfield mdl-textfield--floating-label" },
36 attr = { id = "lf-member__notify_email", class = "mdl-textfield__input" },
37 label_attr = { class = "mdl-textfield__label", ["for"] = "lf-member__notify_email" },
38 label = _'email address',
39 name = 'email',
40 value = ''
41 }
42 slot.put("<br />")
43 ui.tag{
44 tag = "input",
45 attr = {
46 type = "submit",
47 class = "mdl-button mdl-js-button mdl-button--raised mdl-button--colored",
48 value = _"Save"
49 },
50 content = ""
51 }
52 slot.put(" &nbsp; ")
53 ui.link {
54 attr = { class = "mdl-button mdl-js-button" },
55 module = "member", view = "show", id = app.session.member_id,
56 content = _"Cancel"
57 }
58 end
59 }
61 end }
62 end }
63 end }
65 ui.cell_sidebar{ content = function()
66 execute.view {
67 module = "member", view = "_sidebar_whatcanido", params = {
68 member = app.session.member
69 }
70 }
71 end }
73 end }

Impressum / About Us