liquid_feedback_frontend

annotate app/main/member/settings_email.lua @ 1045:701a5cf6b067

Imported LiquidFeedback Frontend 3.0 branch
author bsw
date Thu Jul 10 01:19:48 2014 +0200 (2014-07-10)
parents 418b590fa9ed
children 32cc544d5a5b
rev   line source
bsw@1045 1 ui.titleMember(_"Email address")
bsw@75 2
bsw@1045 3 execute.view {
bsw@1045 4 module = "member", view = "_sidebar_whatcanido", params = {
bsw@1045 5 member = app.session.member
bsw@1045 6 }
bsw@1045 7 }
bsw@75 8
bsw@75 9 ui.form{
bsw@75 10 attr = { class = "vertical" },
bsw@75 11 module = "member",
bsw@75 12 action = "update_email",
bsw@75 13 routing = {
bsw@75 14 ok = {
bsw@75 15 mode = "redirect",
bsw@1045 16 module = "member",
bsw@1045 17 view = "show",
bsw@1045 18 id = app.session.member_id
bsw@75 19 }
bsw@75 20 },
bsw@75 21 content = function()
bsw@1045 22 ui.section( function()
bsw@1045 23
bsw@1045 24 ui.sectionHead( function()
bsw@1045 25 ui.heading { level = 1, content = _"Email address for notifications" }
bsw@1045 26 end )
bsw@1045 27
bsw@1045 28 ui.sectionRow( function()
bsw@1045 29 if app.session.member.notify_email then
bsw@1045 30 ui.field.text{ label = _"confirmed address", value = app.session.member.notify_email, readonly = true }
bsw@1045 31 end
bsw@1045 32 if app.session.member.notify_email_unconfirmed then
bsw@1045 33 ui.field.text{ label = _"unconfirmed address", value = app.session.member.notify_email_unconfirmed, readonly = true }
bsw@1045 34 end
bsw@1045 35 if app.session.member.notify_email or app.session.member.notify_email_unconfirmed then
bsw@1045 36 slot.put("<br />")
bsw@1045 37 end
bsw@1045 38 ui.heading { level = 2, content = _"Enter a new email address:" }
bsw@1045 39 ui.field.text{ name = "email" }
bsw@1045 40 slot.put("<br />")
bsw@1045 41 ui.tag{
bsw@1045 42 tag = "input",
bsw@1045 43 attr = {
bsw@1045 44 type = "submit",
bsw@1045 45 class = "btn btn-default",
bsw@1045 46 value = _"Save"
bsw@1045 47 },
bsw@1045 48 content = ""
bsw@1045 49 }
bsw@1045 50 slot.put("<br /><br /><br />")
bsw@1045 51 ui.link{
bsw@1045 52 content = _"Cancel",
bsw@1045 53 module = "member", view = "show", id = app.session.member.id
bsw@1045 54 }
bsw@1045 55 end )
bsw@1045 56 end )
bsw@75 57 end
bsw@75 58 }
bsw@75 59

Impressum / About Us