[% META title = 'Admin » Lab Tests' -%] [% # PROCESS dumper.tt dump = c.config('msg') %] [% PROCESS admin/lab_test_nav.tt page = 'lab_test' %] [% lab_tests_dfv_js %]

Lab Tests

[% IF dfv_errors %]

[% c.config('msg').dfv_errors %]

[% IF error_field_label # a 3-col unique key %]
combination of test name, lab section and test type must be unique
[% END %] [% END %]

[% div_name = 'new'; INCLUDE site/snippets/toggleview.tt %] Add new entry

[% INCLUDE site/snippets/help.tt file = 'newlabtest' %]
[% meta_data = c.get_meta_data('LabTest'); max_length = meta_data.column('field_label').length; %] [% max_length = meta_data.column('test_name').length; %]
Field label: [% # uses 3-col unique key so can't validate by AJAX: # INCLUDE site/ajax_input.tt, field = 'field_label' %] [% IF error_field_label; error_field_label; ELSE %] [ max [% max_length %] chars ] [% END %]
Test name: [% IF error_test_name %] [% error_test_name %] [% ELSE %] [ max [% max_length %] chars ] [% END %]
Lab section: [% error_lab_section_id %]
Test type: [% error_test_type %]
Results: [% error_has_results %]
Active: [% error_is_active %]

[% site.html.submit %]


Restrict by section (optional): [% # site.html.submit %]

[% IF tests.size # only empty if new db %]
[% PROCESS site/page_count.tt %] [% FOREACH t IN tests %] [% END %]
Field Label Test Name Lab Section Test Type Results Active
[% IF cgi_pager; cgi_pager.first_pos_displayed + loop.count - 1; ELSE; loop.count; END %] Edit
[% PROCESS site/cgi_pager.tt %] [% END %]