liquid_feedback_frontend

view app/main/delegation/_list.lua @ 0:3bfb2fcf7ab9

Version alpha1
author bsw/jbe
date Wed Nov 18 12:00:00 2009 +0100 (2009-11-18)
parents
children 5c601807d397
line source
1 local selector = param.get("selector", "table")
3 ui.paginate{
4 selector = selector,
5 content = function()
6 ui.list{
7 records = selector:exec(),
8 columns = {
9 {
10 label = _"Truster",
11 content = function(record)
12 ui.link{
13 content = record.truster.name,
14 module = "member",
15 view = "show",
16 id = record.truster.id
17 }
18 end
19 },
20 {
21 label = _"Trustee",
22 content = function(record)
23 ui.link{
24 content = record.trustee.name,
25 module = "member",
26 view = "show",
27 id = record.trustee.id
28 }
29 end
30 },
31 {
32 label = _"Area",
33 content = function(record)
34 if record.area then
35 ui.field.text{ value = record.area.name }
36 end
37 end
38 },
39 {
40 label = _"Issue",
41 content = function(record)
42 if record.issue then
43 ui.field.text{ value = record.issue.id }
44 end
45 end
46 },
47 }
48 }
49 end
50 }

Impressum / About Us