  [% skip_wrappers = 1 %]
    
<!-- BEGIN [% template.name %] -->	
    [% # PROCESS dumper.tt dump = c.stash.errs %]
    [% # PROCESS dumper.tt dump = user_list %]
    [% # PROCESS dumper.tt dump = request_options_map %]
    [% # PROCESS dumper.tt dump = status_options_map %]
    [% # PROCESS dumper.tt dump = outstanding_investigations %]
    [% # PROCESS dumper.tt dump = lab_section.as_tree %]
    [% # PROCESS dumper.tt dump = c.query.param('lab_test_id') %]

  [% has_labels = lab_section.has_labels.match('yes')
        AND c.cfg('settings').have_label_printer ? 1 : 0 %]
  
  <p class="classname">[% site.html.back_button %]</p>
  
  <h3>[% lab_section.section_name _ ' worksheet' %]
      [%IF c.query.param('exclude_trials') %] (excluding clinical trials)  [%END %]
 </h3>  

  [% IF has_labels %]
    <form action="[% app_url %]/local_labels/print_lab_section_labels"
        method="post" name="section_labels" id="section_labels">
        <input type="hidden" name="query_string" value="[% c.query.self_url %]" />
        [% INCLUDE worklist/snippets/display_table.tt %]
    </form>
  [% ELSE; INCLUDE worklist/snippets/display_table.tt; END %] 
<!-- END [% template.name %] -->	

