liquid_feedback_frontend

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

Impressum / About Us