bsw@1045: ui.titleMember(_"Email address") bsw@75: bsw@1045: execute.view { bsw@1045: module = "member", view = "_sidebar_whatcanido", params = { bsw@1045: member = app.session.member bsw@1045: } bsw@1045: } 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@1045: module = "member", bsw@1045: view = "show", bsw@1045: id = app.session.member_id bsw@75: } bsw@75: }, bsw@75: content = function() bsw@1045: ui.section( function() bsw@1045: bsw@1045: ui.sectionHead( function() bsw@1045: ui.heading { level = 1, content = _"Email address for notifications" } bsw@1045: end ) bsw@1045: bsw@1045: ui.sectionRow( function() bsw@1045: if app.session.member.notify_email then bsw@1045: ui.field.text{ label = _"confirmed address", value = app.session.member.notify_email, readonly = true } bsw@1045: end bsw@1045: if app.session.member.notify_email_unconfirmed then bsw@1045: ui.field.text{ label = _"unconfirmed address", value = app.session.member.notify_email_unconfirmed, readonly = true } bsw@1045: end bsw@1045: if app.session.member.notify_email or app.session.member.notify_email_unconfirmed then bsw@1045: slot.put("
") bsw@1045: end bsw@1045: ui.heading { level = 2, content = _"Enter a new email address:" } bsw@1045: ui.field.text{ name = "email" } bsw@1045: slot.put("
") bsw@1045: ui.tag{ bsw@1045: tag = "input", bsw@1045: attr = { bsw@1045: type = "submit", bsw@1045: class = "btn btn-default", bsw@1045: value = _"Save" bsw@1045: }, bsw@1045: content = "" bsw@1045: } bsw@1045: slot.put("


") bsw@1045: ui.link{ bsw@1045: content = _"Cancel", bsw@1045: module = "member", view = "show", id = app.session.member.id bsw@1045: } bsw@1045: end ) bsw@1045: end ) bsw@75: end bsw@75: } bsw@75: