[% META title = 'Admin » Lab Tests View' -%] [% # INCLUDE dumper.tt dump = lab_sections; i = 0; # row counter url = app_url _ '/resources/list_all_lab_tests'; active_only = c.query.param('active_only'); lab_section_id = c.query.param('lab_section_id'); %] [% IF lab_tests.size %]

Lab tests view

[% IF lab_sections.size %]

Show only: active [% site.html.go_btn %]

[% END %] [% WHILE ( test = lab_tests.next ); NEXT IF active_only AND NOT test.is_active.match('yes'); IF lab_section_id; # not used by app, just skip entries: NEXT UNLESS test.lab_section_id == lab_section_id; END; %] [% END %]
Test Label Test Name Test Type Active [% UNLESS lab_section_id %] Lab Section [% ELSE %]Lab Section[% END %]
[% i = i + 1; i %] [% test.field_label %] [% test.test_name %] [% test.test_type %] [% test.is_active %] [% test.lab_section.section_name %]
[% ELSE %]

No lab tests configured

[% END %]