annotate app/main/member/settings_email.lua @ 881:23e12fe721d4
Fix in voting comment form
author |
bsw |
date |
Mon Aug 20 01:20:09 2012 +0200 (2012-08-20) |
parents |
418b590fa9ed |
children |
701a5cf6b067 |
rev |
line source |
bsw@564
|
1 ui.title(_"Change your notification email address")
|
bsw@75
|
2
|
bsw@75
|
3 util.help("member.settings.email_address", _"Change email")
|
bsw@75
|
4
|
bsw@75
|
5 ui.form{
|
bsw@75
|
6 attr = { class = "vertical" },
|
bsw@75
|
7 module = "member",
|
bsw@75
|
8 action = "update_email",
|
bsw@75
|
9 routing = {
|
bsw@75
|
10 ok = {
|
bsw@75
|
11 mode = "redirect",
|
bsw@75
|
12 module = "index",
|
bsw@75
|
13 view = "index"
|
bsw@75
|
14 }
|
bsw@75
|
15 },
|
bsw@75
|
16 content = function()
|
bsw@75
|
17 if app.session.member.notify_email then
|
bsw@75
|
18 ui.field.text{ label = _"Confirmed address", value = app.session.member.notify_email, readonly = true }
|
bsw@75
|
19 end
|
bsw@75
|
20 if app.session.member.notify_email_unconfirmed then
|
bsw@75
|
21 ui.field.text{ label = _"Unconfirmed address", value = app.session.member.notify_email_unconfirmed, readonly = true }
|
bsw@75
|
22 end
|
bsw@75
|
23 ui.field.text{ label = _"New address", name = "email" }
|
bsw@75
|
24 ui.submit{ value = _"Change email" }
|
bsw@75
|
25 end
|
bsw@75
|
26 }
|
bsw@75
|
27
|