liquid_feedback_frontend

view app/main/area/list.lua @ 262:7ef1e03e4057

Added unit chooser and unit support to area list
author bsw
date Tue Feb 07 17:54:00 2012 +0100 (2012-02-07)
parents 743194cbdd89
children 1b8d51e21614
line source
1 local unit_id = param.get("unit_id", atom.integer)
3 local areas_selector = Area:build_selector{ active = true, unit_id = unit_id }
5 local unit = Unit:by_id(unit_id)
8 if config.feature_units_enabled then
9 slot.put_into("title", unit.name)
10 else
11 slot.put_into("title", encode.html(config.app_title))
12 end
15 if not app.session.member_id and config.motd_public then
16 local help_text = config.motd_public
17 ui.container{
18 attr = { class = "wiki motd" },
19 content = function()
20 slot.put(format.wiki_text(help_text))
21 end
22 }
23 end
25 util.help("area.list", _"Area list")
27 if app.session.member_id then
28 execute.view{
29 module = "delegation",
30 view = "_show_box",
31 params = { unit_id = unit_id }
32 }
33 end
36 execute.view{
37 module = "area",
38 view = "_list",
39 params = { areas_selector = areas_selector }
40 }

Impressum / About Us