liquid_feedback_frontend
view app/main/area/show.lua @ 2:5c601807d397
Version alpha3
Dark green part of issue supporter bargraph represents all satisfied supporters, regardless of having seen the latest draft
Wiki formatting for drafts
Showing differences between two drafts of the same initiative
Display of outgoing delegation chains
Many other improvements
Dark green part of issue supporter bargraph represents all satisfied supporters, regardless of having seen the latest draft
Wiki formatting for drafts
Showing differences between two drafts of the same initiative
Display of outgoing delegation chains
Many other improvements
author | bsw |
---|---|
date | Mon Nov 23 12:00:00 2009 +0100 (2009-11-23) |
parents | 3bfb2fcf7ab9 |
children | 80c215dbf076 |
line source
1 local area = Area:new_selector():add_where{ "id = ?", param.get_id() }:single_object_mode():exec()
3 slot.put_into("title", encode.html(_"Area '#{name}'":gsub("#{name}", area.name)))
5 ui.container{
6 attr = { class = "vertical"},
7 content = function()
8 ui.field.text{ value = area.description }
9 end
10 }
13 slot.select("actions", function()
14 ui.link{
15 content = function()
16 ui.image{ static = "icons/16/table_go.png" }
17 slot.put(_"Delegate")
18 end,
19 module = "delegation",
20 view = "new",
21 params = { area_id = area.id }
22 }
23 ui.link{
24 content = function()
25 ui.image{ static = "icons/16/folder_add.png" }
26 slot.put(_"Create new issue")
27 end,
28 module = "initiative",
29 view = "new",
30 params = { area_id = area.id }
31 }
32 end)
34 execute.view{
35 module = "membership",
36 view = "_show_box",
37 params = { area = area }
38 }
40 execute.view{
41 module = "delegation",
42 view = "_show_box",
43 params = { area_id = area.id }
44 }
46 ui.tabs{
47 {
48 name = "issues",
49 label = _"Issues",
50 content = function()
51 execute.view{
52 module = "issue",
53 view = "_list",
54 params = { issues_selector = area:get_reference_selector("issues"), for_area_list = true }
55 }
56 end
57 },
58 {
59 name = "members",
60 label = _"Members",
61 content = function()
62 execute.view{
63 module = "member",
64 view = "_list",
65 params = { members_selector = area:get_reference_selector("members") }
66 }
67 end
68 },
69 {
70 name = "delegations",
71 label = _"Delegations",
72 content = function()
73 execute.view{
74 module = "delegation",
75 view = "_list",
76 params = { delegations_selector = area:get_reference_selector("delegations") }
77 }
78 end
79 },
80 }