liquid_feedback_frontend

view app/main/admin/unit_list.lua @ 512:d0e12e1b8761

Make member privileges editable in admin section
author bsw
date Wed Apr 11 19:03:50 2012 +0200 (2012-04-11)
parents f42d16567c5d
children dbfde3c56790
line source
1 local units = Unit:get_flattened_tree{ active = true }
3 slot.put_into("title", _"Unit list")
5 slot.select("actions", function()
6 ui.link{
7 attr = { class = { "admin_only" } },
8 text = _"Create new unit",
9 module = "admin",
10 view = "unit_edit"
11 }
12 end)
14 ui.list{
15 records = units,
16 columns = {
17 {
18 label = "name",
19 content = function(unit)
20 ui.link{ text = unit.name, module = "admin", view = "area_list", params = { unit_id = unit.id } }
21 end
22 }
23 }
24 }

Impressum / About Us