  [% META title = 'Resources &raquo; Resend HL7 Data' -%]

<!-- BEGIN [% template.name %] -->
    [% # PROCESS dumper.tt dump = result %]
    [% IF result %]
        <div>
            <span class="info">ICE server responded with:</span>
            <pre class="indent">[% result %]</pre>
        </div>
        <p class="info">To view result:
            <a href="[% app_url %]/resources/query_view/hl7_records_view">
                <i>Resources &#187; Static views &#187; HL7 records today</i>
            </a>
        </p>
    [% ELSE;
        USE date; manip = date.manip; %]
        <form action="[% app_url %]/resources/resend_hl7">
          <p class="info indent">Confirm re-send records from
            [% manip.UnixDate("Yesterday", "%a %d.%b.%Y") %] to ICE server
            <input type="checkbox" name="confirm_resend" value="1" />
            [% site.html.go_btn %]
          </p>
        </form>
    [% END %]
<!-- END [% template.name %] -->
