[% count = 1 %]
[% FOREACH entry IN lab_tests.item(section); # PROCESS dumper.tt dump = entry;
# skip inactive tests if not selected (selected ones disabled below):
NEXT IF entry.is_active.match('no') AND NOT entry.selected;
NEXT IF entry.test_type != test_type;
%]
[% entry.field_label %]:
[% UNLESS loop.last OR # don't start new table unless multiple of 4:
count % 4 %]