liquid_feedback_frontend
view app/main/area/show.lua @ 9:0ee1e0c42d4c
Version beta5
Minor security fix: Added missing security filter for admin section. Reading of member listing including login names was possible for all users. Write access has not been possible though.
Changing of name and login is possible while a history of these changes is written and accessible by all users.
Statistics shown in area list
Trimming of user input also converts multiple whitespaces to single space character.
Minor security fix: Added missing security filter for admin section. Reading of member listing including login names was possible for all users. Write access has not been possible though.
Changing of name and login is possible while a history of these changes is written and accessible by all users.
Statistics shown in area list
Trimming of user input also converts multiple whitespaces to single space character.
author | bsw |
---|---|
date | Mon Jan 04 12:00:00 2010 +0100 (2010-01-04) |
parents | 80c215dbf076 |
children | 00d1004545f1 |
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/folder_add.png" }
17 slot.put(_"Create new issue")
18 end,
19 module = "initiative",
20 view = "new",
21 params = { area_id = area.id }
22 }
23 end)
25 util.help("area.show")
27 execute.view{
28 module = "membership",
29 view = "_show_box",
30 params = { area = area }
31 }
33 execute.view{
34 module = "delegation",
35 view = "_show_box",
36 params = { area_id = area.id }
37 }
39 ui.tabs{
40 {
41 name = "issues",
42 label = _"Issues",
43 content = function()
44 execute.view{
45 module = "issue",
46 view = "_list",
47 params = { issues_selector = area:get_reference_selector("issues"), for_area_list = true }
48 }
49 end
50 },
51 {
52 name = "members",
53 label = _"Members",
54 content = function()
55 execute.view{
56 module = "member",
57 view = "_list",
58 params = { members_selector = area:get_reference_selector("members") }
59 }
60 end
61 },
62 {
63 name = "delegations",
64 label = _"Delegations",
65 content = function()
66 execute.view{
67 module = "delegation",
68 view = "_list",
69 params = { delegations_selector = area:get_reference_selector("delegations") }
70 }
71 end
72 },
73 }