[% META title = 'Haematological Malignancy Research Network' %]

<!-- BEGIN [% template.name %] -->
    [% # PROCESS dumper.tt dump = c.stash.errs %]
    
    [% # PROCESS site/js/jquery.tt # already loaded in html_wrapper %]
    <script type="text/javascript" src="/js/jquery.dateentry.min.js"></script>
	<script type="text/javascript" src="/js/jquery.mousewheel.js"></script>
	<script type="text/javascript" src="/js/changeField.js"></script>

    [% IF dfv_errors %]
        <p class="error">[% c.cfg('msg').dfv_errors %]</p>
    [% END %]

    <p class="header">HMRN data collection new diagnoses</p>

    [% IF error_duration_args %]
        <p class="error indent">require a date or date range to search on:</p>
    [% END %]

    [% class = 'itemshow' # not using itemhidden %]
    <div class="[% class %]" id="data">
      <form method="post" action="[% app_url %]/hmrn/new_diagnoses">
        <div class="indent">
			<span class="title">1. Potential new diagnoses for</span>:
			<ul id="id" class="indent">
				<li>
					<label for="previous_week"> previous week
						<input type="checkbox" name="previous_week" value="1"
							id="previous_week" />
					</label>				
				</li>
				<li>
					previous <input type="text" size="2" name="duration" /> days
                    [% site.html.reset %]
				</li>
				<li>
					date range 
					<input type="text" name="date_from" id="date_from" size="8" /> to
					<input type="text" name="date_to" id="date_to" size="8" />
                    [% site.html.reset %]
				</li>
				<li>
					lab number
					<input type="text" name="lab_number" size="12" />
					[use n/yy format eg 1/10]  [% site.html.reset %]
				</li>
			</ul>
        </div>
		
		<p class="title indent">2. Output format:</p>
		<div class="indent">
			<p class="indent">
				<input type="submit" name="format" class="button" value="WorkList" /> 
                OR
				<input type="submit" name="format" class="button" value="Templates" />
                OR
				<input type="submit" name="format" class="button" value="Export" />
			</p>
		</div>	   
      </form>
    </div>
    
    <p class="header">HMRN administration
		[% div_name = 'admin'; INCLUDE site/snippets/toggleview.tt %]		
	</p>

    <div class="itemhidden" id="[% div_name %]">
      <table class="indent borderless">
        <tr>
            <td><img alt="" src="/images/text.gif" class="text" /></td>
            <td>
                <a class="nav" href="[% app_url %]/hmrn/treatment_options">
                    treatment and clinical trial options
                </a>
            </td>
        </tr>
       <tr>
          <td><img alt="" src="/images/text.gif" class="text" /></td>
          <td>
            <a class="nav" href="[% app_url %]/hmrn/params_config">
                data params for disease categories
            </a>
          </td>
        </tr>
      </table>   
    </div>

<!-- END [% template.name %] -->
