<!-- BEGIN [% template.name %] -->
  [% META title = 'Worklist &raquo; Print FISH Worksheets custom' -%]

    [% # PROCESS dumper.tt dump = data %]

    <h3>Print custom FISH worksheets</h3>
<!-- END [% template.name %] -->
  <form method="get" action="[% app_url %]/local_worklist" name="fish_custom_worksheet"
		id="fish_custom_worksheet">
    <input type="hidden" name="function_name"
      value="[% c.query.param('function_name') %]" />

  <div class="indent">
    [% IF NOT test_names.size %]
	  <p class="bold">Select one or more tests:</p>
		<div id="multi">
		  <div class="indent">
			<select multiple size="[% IF lab_tests.size > 8; 8; END %]"
				name="lab_test_id">
			[% FOREACH test IN lab_tests;
			  NEXT IF test.test_name.match('extraction'); # causes errs & don't need
			%]
			  <option value="[% test.id %]">[% test.field_label | html %]</option>
			[% END %]
			</select>
		  </div>
		</div>
		<p>[% site.html.reset %] [% site.html.submit %]</p>
	[% ELSE %]
	  <input type="hidden" name="print_worksheet" value="1" />
	  [% FOREACH id IN lab_test_ids %]
		<input type="hidden" name="lab_test_id"	value="[% id %]" />
	  [% END %]
        [% END %]
