[% # INCLUDE dumper.tt dump = lab_section %] [% # INCLUDE dumper.tt dump = is_locked %] [% # INCLUDE dumper.tt dump = request.as_tree %]

Request new lab tests: [% div_name = 'extraction'; INCLUDE site/snippets/toggleview.tt %]

[% IF is_locked # don't need to go through manual unlock for this: %] [% END %] [% IF is_locked %] [% END %] [% UNLESS _is_locked # using auto-unlock now so don't need to disable: %] [% END %]
[record will be auto-unlocked]
[% FOREACH pair IN lab_tests; # INCLUDE dumper.tt dump = pair; label = pair.key; # INCLUDE dumper.tt dump = request_lab_tests.${label}; test_id = pair.value; re = '[^complete]\w+'; # disable any status except complete: class = request_lab_tests.${label}.match(re) ? 'grey' : 'normal'; %]
[% label %]:
[% END %]
[% site.html.go_btn %]