[%# This template can be passed the following variables: session_info => { username, session_id, superuser, fullname, etc } editor => 1, or 0 or undefined descriptions => { camp => { A1 => blah, A2 => ... }, constit => { A2 => blah } } browsetype => "camp" or "constit" (only one term) page => 'remove' or 'reject' %] [% username = session_info.username %] CALF | Listing Groups | [% PROCESS filters_string %] [% INCLUDE groupshead %] [% INCLUDE editorsmenu IF editor == 1 %]

Filtering items by: [% PROCESS filters_string %] ([% total_count %])
[% INCLUDE colorbar color = "ff0000" height = "8" percent = "98%" %] [% FOREACH list = lists %] [% END %]
Item Name Description Camps Constituencies
[% list.name %] [% list.description %] [% FOREACH camp = list.camp %][% descriptions.camp.$camp %]
[% END %]
[% FOREACH constit = list.constit %][% descriptions.constit.$constit %]
[% END %]

[% INCLUDE colorbar color = "ff0000" height = "8" percent = "98%" %] [% INCLUDE footer %] [% BLOCK filters_string; FOREACH type = filters.keys; codes = filters.$type; FOREACH code = codes; descriptions.$type.$code; ", " IF loop.size > loop.count; END; ", " IF loop.size > loop.count; END; END %] [% BLOCK filters_url; FOREACH type = filters.keys; codes = filters.$type; FOREACH code = codes; "$type=$code"; "&" UNLESS loop.size == loop.count; END; "&" UNLESS loop.size == loop.count; END; END %]