liquid_feedback_frontend

annotate app/main/member/edit_avatar.lua @ 3:768faea1096d

Version alpha4

Members interested in an issue or supporting an initiative have a weight information attached. Browsing the members causing that weight is possible.

Initiatives may provide a link to an external discussion platform

Direct link on every initiative page to create an alternative initiative

Bugfix: No error when clicking "neutral", when "neutral" is currently selected
author bsw
date Mon Nov 30 12:00:00 2009 +0100 (2009-11-30)
parents 3bfb2fcf7ab9
children
rev   line source
bsw/jbe@0 1 slot.put_into("title", _"Upload avatar")
bsw/jbe@0 2
bsw/jbe@0 3 slot.select("actions", function()
bsw/jbe@0 4 ui.link{
bsw/jbe@0 5 content = function()
bsw/jbe@0 6 ui.image{ static = "icons/16/cancel.png" }
bsw/jbe@0 7 slot.put(_"Cancel")
bsw/jbe@0 8 end,
bsw/jbe@0 9 module = "index",
bsw/jbe@0 10 view = "index"
bsw/jbe@0 11 }
bsw/jbe@0 12 end)
bsw/jbe@0 13
bsw/jbe@0 14 ui.form{
bsw/jbe@0 15 record = app.session.member,
bsw/jbe@0 16 attr = {
bsw/jbe@0 17 class = "vertical",
bsw/jbe@0 18 enctype = 'multipart/form-data'
bsw/jbe@0 19 },
bsw/jbe@0 20 module = "member",
bsw/jbe@0 21 action = "update_avatar",
bsw/jbe@0 22 routing = {
bsw/jbe@0 23 ok = {
bsw/jbe@0 24 mode = "redirect",
bsw/jbe@0 25 module = "index",
bsw/jbe@0 26 view = "index"
bsw/jbe@0 27 }
bsw/jbe@0 28 },
bsw/jbe@0 29 content = function()
bsw/jbe@0 30 ui.field.image{ field_name = "avatar", label = _"Avatar" }
bsw/jbe@0 31 ui.submit{ value = _"Save" }
bsw/jbe@0 32 end
bsw/jbe@0 33 }

Impressum / About Us