bsw@75: slot.put_into("title", _"Change your notification email address") bsw@75: bsw@75: slot.select("actions", function() bsw@75: ui.link{ bsw@75: content = function() bsw@75: ui.image{ static = "icons/16/cancel.png" } bsw@75: slot.put(_"Cancel") bsw@75: end, bsw@75: module = "member", bsw@75: view = "settings" bsw@75: } bsw@75: end) bsw@75: bsw@75: util.help("member.settings.email_address", _"Change email") bsw@75: bsw@75: ui.form{ bsw@75: attr = { class = "vertical" }, bsw@75: module = "member", bsw@75: action = "update_email", bsw@75: routing = { bsw@75: ok = { bsw@75: mode = "redirect", bsw@75: module = "index", bsw@75: view = "index" bsw@75: } bsw@75: }, bsw@75: content = function() bsw@75: if app.session.member.notify_email then bsw@75: ui.field.text{ label = _"Confirmed address", value = app.session.member.notify_email, readonly = true } bsw@75: end bsw@75: if app.session.member.notify_email_unconfirmed then bsw@75: ui.field.text{ label = _"Unconfirmed address", value = app.session.member.notify_email_unconfirmed, readonly = true } bsw@75: end bsw@75: ui.field.text{ label = _"New address", name = "email" } bsw@75: ui.submit{ value = _"Change email" } bsw@75: end bsw@75: } bsw@75: