annotate app/main/lf2/_sidebar.lua @ 211:4993b71b383f
First checkin of lf2 (frontend second generation) prototype
| author |
bsw |
| date |
Wed Mar 02 20:06:26 2011 +0100 (2011-03-02) |
| parents |
|
| children |
3e4ad069847a |
| rev |
line source |
|
bsw@211
|
1 local member_areas_selector = Area:build_selector{
|
|
bsw@211
|
2 member_id = app.session.member_id,
|
|
bsw@211
|
3 order = "name"
|
|
bsw@211
|
4 }
|
|
bsw@211
|
5 local other_areas_selector = Area:build_selector{
|
|
bsw@211
|
6 not_member_id = app.session.member_id,
|
|
bsw@211
|
7 order = "name"
|
|
bsw@211
|
8 }
|
|
bsw@211
|
9
|
|
bsw@211
|
10 execute.view{ module = "lf2", view = "_delegation_global" }
|
|
bsw@211
|
11
|
|
bsw@211
|
12 ui.form{
|
|
bsw@211
|
13 content = function()
|
|
bsw@211
|
14
|
|
bsw@211
|
15 ui.container{ attr = { class = "boxhead" }, content = _"" }
|
|
bsw@211
|
16 --execute.view{ module = "lf2", view = "_areas", params = { areas_selector = member_areas_selector } }
|
|
bsw@211
|
17
|
|
bsw@211
|
18 execute.view{
|
|
bsw@211
|
19 module = "lf2", view = "_areas", params = {
|
|
bsw@211
|
20 areas_selector = member_areas_selector,
|
|
bsw@211
|
21 head_content = function() ui.tag{ content = _"Areas, you are member of" } end
|
|
bsw@211
|
22 }
|
|
bsw@211
|
23 }
|
|
bsw@211
|
24
|
|
bsw@211
|
25 execute.view{
|
|
bsw@211
|
26 module = "lf2", view = "_areas", params = {
|
|
bsw@211
|
27 areas_selector = other_areas_selector,
|
|
bsw@211
|
28 head_content = function() ui.tag{ content = _"Areas, you are not member of" } end
|
|
bsw@211
|
29 }
|
|
bsw@211
|
30 }
|
|
bsw@211
|
31
|
|
bsw@211
|
32 end
|
|
bsw@211
|
33 }
|
|
bsw@211
|
34
|
|
bsw@211
|
35 execute.view{ module = "lf2", view = "_search", params = { area = area } }
|
|
bsw@211
|
36
|