liquid_feedback_frontend
view app/main/opinion/_list.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 | 8d91bccab0bf |
children | de6b80867eb7 |
line source
1 local opinions_selector = param.get("opinions_selector", "table")
3 ui.list{
4 records = opinions_selector:exec(),
5 columns = {
6 {
7 label = _"Member name",
8 name = "member_name"
9 },
10 {
11 label = _"Degree",
12 content = function(record)
13 if record.degree == -2 then
14 slot.put(_"must not")
15 elseif record.degree == -1 then
16 slot.put(_"should not")
17 elseif record.degree == 1 then
18 slot.put(_"should")
19 elseif record.degree == 2 then
20 slot.put(_"must")
21 end
22 end
23 },
24 {
25 label = _"Suggestion currently implemented",
26 content = function(record)
27 if record.fulfilled then
28 slot.put(_"Yes")
29 else
30 slot.put(_"No")
31 end
32 end
33 },
34 }
35 }