liquid_feedback_frontend
changeset 1424:5530cce896d6
Allow to filter member list for unit
author | bsw |
---|---|
date | Fri Oct 05 18:53:39 2018 +0200 (2018-10-05) |
parents | 4232b30dfb11 |
children | e7131a564895 |
files | app/main/member/list.lua |
line diff
1.1 --- a/app/main/member/list.lua Thu Sep 20 13:49:19 2018 +0200 1.2 +++ b/app/main/member/list.lua Fri Oct 05 18:53:39 2018 +0200 1.3 @@ -1,8 +1,14 @@ 1.4 ui.title(_"Member list") 1.5 1.6 +local unit_id = param.get("unit_id", atom.integer) 1.7 + 1.8 local members_selector = Member:new_selector() 1.9 :add_where("activated NOTNULL") 1.10 1.11 +if unit_id then 1.12 + member_selector:join("privilege", nil, { "privilege.member_id = member.id AND privilege.unit_id = ?", unit_id }) 1.13 +end 1.14 + 1.15 ui.grid{ content = function() 1.16 ui.cell_full{ content = function() 1.17