<!-- BEGIN [% template.name %] -->
  [% META title = 'Worklist' -%]
	
  [% # PROCESS dumper.tt dump = request_status_options %]
  
  [% title = lab_tests ? 'Display/Print:' : 'Lab section worksheets:' %]
  <h3 class="header">[% title %]</h3>
    
  <div class="indent">
	<form action="[% app_url %]/worklist/select" method="get" name="worklist"
		  id="worklist">
	  [% IF active_sections.size; PROCESS worklist/snippets/lab_section.tt;
		ELSE; %]
		<p class="info">no outstanding lab-tests</p>
	  [% END %]
	</form>
  </div>
  
  [% IF active_investigations; # PROCESS dumper.tt dump = active_investigations
	  PROCESS worklist/tests.tt;
	ELSE;
#	  INCLUDE worklist/outreach.tt     IF local_worklists.outreach; # merged with local.tt
	  INCLUDE worklist/local.tt        IF local_worklists AND c.user_can('modify_results');
	  INCLUDE worklist/print_labels.tt IF print_labels AND c.user_can('modify_results');
	  INCLUDE worklist/status.tt;
    END %]

  <p>[% site.html.back_button %]</p>
<!-- END [% template.name %] -->   
