bsw@1487: ui.title(_"Confirm notification address")
bsw@1487: 
bsw@558: if app.session.member.notify_email_unconfirmed then
bsw@558: 
bsw@1487: ui.grid{ content = function()
bsw@1487:   ui.cell_full{ content = function()
bsw@1487: 
bsw@1487:     ui.container { attr = { class = "mdl-card mdl-shadow--2dp mdl-card__fullwidth" }, content = function()
bsw@558: 
bsw@1487:       ui.container{ attr = { class = "mdl-card__title mdl-card--border" }, content = function()
bsw@1487:         ui.heading { attr = { class = "mdl-card__title-text" }, level = 2, content = _"Notification address unconfirmed" }
bsw@1487:       end }
bsw@1487:       ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function()
bsw@1487: 
bsw@1487:         local current = Member:new_selector()
bsw@1487:           :add_where{ "id = ?", app.session.member_id }
bsw@1487:           :add_where("notify_email_unconfirmed NOTNULL")
bsw@1487:           :add_where("notify_email_secret_expiry > now()")
bsw@1487:           :optional_object_mode()
bsw@1487:           :exec()
bsw@558: 
bsw@1487:         if current then
bsw@1487:           ui.tag{
bsw@1487:             tag = "div",
bsw@1487:             content = _("You didn't confirm your email address '#{email}'. You have received an email with an activation link.", { email = app.session.member.notify_email_unconfirmed })
bsw@1487:           }
bsw@1487:         else
bsw@1487:           ui.tag{
bsw@1487:             tag = "div",
bsw@1487:             content = _("You didn't confirm your email address '#{email}' within 7 days.", { email = app.session.member.notify_email_unconfirmed })
bsw@1487:           }
bsw@1487:         end
bsw@1487:         slot.put("
")
bsw@1487: 
bsw@1487:         ui.link{
bsw@1487:           text = _"Change email address",
bsw@1487:           module = "member",
bsw@1487:           view = "settings_email",
bsw@1045:         }
bsw@1487:         slot.put("
")
bsw@1487:         slot.put("
")
bsw@558: 
bsw@1487:         ui.link{
bsw@1487:           text = _("Resend activation email to '#{email}'", { email = app.session.member.notify_email_unconfirmed }),
bsw@1487:           module = "member",
bsw@1487:           action = "update_email",
bsw@1487:           params = {
bsw@1487:             resend = true
bsw@1487:           },
bsw@1487:           routing = {
bsw@1487:             default = {
bsw@1487:               mode = "redirect",
bsw@1487:               module = "index",
bsw@1487:               view = "index"
bsw@1487:             }
bsw@1045:           }
bsw@1045:         }
bsw@1487: 
bsw@1487:       end }
bsw@1487:     end }
bsw@1487:   end }
bsw@1487: end }
bsw@1487: 
bsw@1487: 
bsw@558: end