[%# 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" %]
Top: ([% total_list_count %] items in the database) |
[% FOREACH camp = camp_list %]
[% camp.description %] ([% camp.cnt %]) [% IF loop.count >= camp_column_break %] [% NEXT IF camp_broken.defined %] | [% camp_broken = 1 %] [% END %] [% END %] |
[% FOREACH constit = constit_list %]
[% constit.description %] ([% constit.cnt %]) [% IF loop.count >= constit_column_break %] [% NEXT IF constit_broken.defined %] | [% constit_broken = 1 %] [% END %] [% END %] |