[%# This template will be passed the following paramaters. session_info => { username, session_id, superuser, fullname, etc } editor => 1, or 0 or undefined total_list_count => n (hopelly where n is bigger than 0!) types => { type1 => [ {code => A1, description => "Blah", cnt => 19 }, {} ] type2 => [ {code => A1, description => "Blah", cnt => 19 }, {} ] } %] [% username = session_info.username %] [% camp_list = types.camp %] [% constit_list = types.constit %] [% camp_column_break = (camp_list.size / 2) %] [% constit_column_break = (constit_list.size / 2) %] [% PROCESS submit_selectoptions %] [% SET page = "index.html" %] CALF Demonstration [% INCLUDE groupshead %] [% INCLUDE groupsmenu %] [% INCLUDE groupsearch # search without a category specified %] [% INCLUDE editorsmenu IF editor == 1%]
Top: ([% total_list_count %] items in the database)
[% INCLUDE colorbar color = "ff0000" height = "8" percent = "98%" %] by camp

[% FOREACH camp = camp_list %] [% camp.description %] ([% camp.cnt %])
[% IF loop.count >= camp_column_break %] [% NEXT IF camp_broken.defined %]
[% camp_broken = 1 %] [% END %] [% END %]

[% INCLUDE colorbar color = "ff0000" height = "8" percent = "98%" %] by constituency

[% FOREACH constit = constit_list %] [% constit.description %] ([% constit.cnt %])
[% IF loop.count >= constit_column_break %] [% NEXT IF constit_broken.defined %]
[% constit_broken = 1 %] [% END %] [% END %]

[% INCLUDE colorbar color = "ff0000" height = "8" percent = "98%" %] [% INCLUDE footer %]