liquid_feedback_frontend

annotate app/main/membership/_show_box.lua @ 6:8d91bccab0bf

Version beta2

Possibility to browse voters of a closed issue

Registration with invite code

Email confirmation and password recovery

Download function (for database dumps) added

Critical bug solved, which made it impossible to select your opinion on other peoples suggestions

Catching error, when trying to set an opinion on a suggestion which has been meanwhile deleted

Fixed wrong sorting order for "supporters" or "potential supporters"

Added format info for birthday (Error when entering dates in wrong format is NOT fixed in this release)

Strip space characters from certain fields and ensure they contain at least 3 characters

Showing grade in opinion/list as clear text instead of integer value

More information on initiative is displayed while voting

Colored notification box shown on pages of issues or initiatives which are currently in voting state

Changed default filter for issues to "Open"

Back link on suggestion page

Some optical changes

Removed wrong space character in LICENSE file
author bsw/jbe
date Sat Jan 02 12:00:00 2010 +0100 (2010-01-02)
parents 80c215dbf076
children 00d1004545f1
rev   line source
bsw/jbe@0 1 local area = param.get("area", "table")
bsw/jbe@0 2
bsw/jbe@4 3 local membership = Membership:by_pk(area.id, app.session.member.id)
bsw/jbe@4 4
bsw/jbe@0 5 slot.select("interest", function()
bsw/jbe@0 6
bsw/jbe@4 7 if membership then
bsw/jbe@4 8
bsw/jbe@4 9 ui.container{
bsw/jbe@4 10 attr = {
bsw/jbe@4 11 class = "head head_active",
bsw/jbe@4 12 onclick = "document.getElementById('membership_content').style.display = 'block';"
bsw/jbe@4 13 },
bsw/jbe@4 14 content = function()
bsw/jbe@4 15 ui.image{
bsw/jbe@4 16 static = "icons/16/user_green.png"
bsw/jbe@4 17 }
bsw/jbe@4 18 slot.put(_"You are member")
bsw/jbe@4 19 ui.image{
bsw/jbe@4 20 static = "icons/16/dropdown.png"
bsw/jbe@4 21 }
bsw/jbe@0 22 end
bsw/jbe@4 23 }
bsw/jbe@4 24
bsw/jbe@4 25 ui.container{
bsw/jbe@4 26 attr = { class = "content", id = "membership_content" },
bsw/jbe@4 27 content = function()
bsw/jbe@4 28 ui.container{
bsw/jbe@4 29 attr = {
bsw/jbe@4 30 class = "close",
bsw/jbe@4 31 style = "cursor: pointer;",
bsw/jbe@4 32 onclick = "document.getElementById('membership_content').style.display = 'none';"
bsw/jbe@4 33 },
bsw/jbe@4 34 content = function()
bsw/jbe@4 35 ui.image{ static = "icons/16/cross.png" }
bsw/jbe@4 36 end
bsw/jbe@4 37 }
bsw/jbe@0 38 ui.link{
bsw/jbe@0 39 content = _"Remove my membership",
bsw/jbe@0 40 module = "membership",
bsw/jbe@0 41 action = "update",
bsw/jbe@0 42 params = { area_id = area.id, delete = true },
bsw/jbe@0 43 routing = { default = { mode = "redirect", module = "area", view = "show", id = area.id } }
bsw/jbe@0 44 }
bsw/jbe@0 45 if membership.autoreject then
bsw/jbe@0 46 ui.field.text{ value = _"Autoreject is on." }
bsw/jbe@0 47 ui.link{
bsw/jbe@0 48 content = _"Remove autoreject",
bsw/jbe@0 49 module = "membership",
bsw/jbe@0 50 action = "update",
bsw/jbe@0 51 params = { area_id = area.id, autoreject = false },
bsw/jbe@0 52 routing = { default = { mode = "redirect", module = "area", view = "show", id = area.id } }
bsw/jbe@0 53 }
bsw/jbe@0 54 else
bsw/jbe@0 55 ui.field.text{ value = _"Autoreject is off." }
bsw/jbe@0 56 ui.link{
bsw/jbe@0 57 content = _"Set autoreject",
bsw/jbe@0 58 module = "membership",
bsw/jbe@0 59 action = "update",
bsw/jbe@0 60 params = { area_id = area.id, autoreject = true },
bsw/jbe@0 61 routing = { default = { mode = "redirect", module = "area", view = "show", id = area.id } }
bsw/jbe@0 62 }
bsw/jbe@0 63 end
bsw/jbe@4 64 end
bsw/jbe@4 65 }
bsw/jbe@4 66 else
bsw/jbe@4 67 ui.link{
bsw/jbe@4 68 content = function()
bsw/jbe@4 69 ui.image{ static = "icons/16/user_add.png" }
bsw/jbe@4 70 slot.put(_"Become a member")
bsw/jbe@4 71 end,
bsw/jbe@4 72 module = "membership",
bsw/jbe@4 73 action = "update",
bsw/jbe@4 74 params = { area_id = area.id },
bsw/jbe@4 75 routing = {
bsw/jbe@4 76 default = {
bsw/jbe@4 77 mode = "redirect",
bsw/jbe@4 78 module = "area",
bsw/jbe@4 79 view = "show",
bsw/jbe@4 80 id = area.id
bsw/jbe@0 81 }
bsw/jbe@4 82 }
bsw/jbe@4 83 }
bsw/jbe@4 84 end
bsw/jbe@4 85
bsw/jbe@0 86 end)

Impressum / About Us