liquid_feedback_frontend
view app/main/member/settings_email.lua @ 172:165f4bd02cf3
don't show the first draft of a new initiative as a new draft event in the timeline
new draft should only show changes of drafts drafts of new initiatives as they are handled by the new initiative event
new draft should only show changes of drafts drafts of new initiatives as they are handled by the new initiative event
| author | Daniel Poelzleithner <poelzi@poelzi.org> | 
|---|---|
| date | Sun Oct 10 19:40:32 2010 +0200 (2010-10-10) | 
| parents | 733f65c0c0a0 | 
| children | 418b590fa9ed | 
 line source
     1 slot.put_into("title", _"Change your notification email address")
     3 slot.select("actions", function()
     4   ui.link{
     5     content = function()
     6         ui.image{ static = "icons/16/cancel.png" }
     7         slot.put(_"Cancel")
     8     end,
     9     module = "member",
    10     view = "settings"
    11   }
    12 end)
    14 util.help("member.settings.email_address", _"Change email")
    16 ui.form{
    17   attr = { class = "vertical" },
    18   module = "member",
    19   action = "update_email",
    20   routing = {
    21     ok = {
    22       mode = "redirect",
    23       module = "index",
    24       view = "index"
    25     }
    26   },
    27   content = function()
    28     if app.session.member.notify_email then
    29       ui.field.text{ label = _"Confirmed address", value = app.session.member.notify_email, readonly = true }
    30     end
    31     if app.session.member.notify_email_unconfirmed then
    32       ui.field.text{ label = _"Unconfirmed address", value = app.session.member.notify_email_unconfirmed, readonly = true }
    33     end
    34     ui.field.text{ label = _"New address", name = "email" }
    35     ui.submit{ value = _"Change email" }
    36   end
    37 }
