RSS Git Download  Clone
Raw Blame History
    [% META title = 'Worklist » Lab Test Updates' %]
    
<!-- BEGIN [% template.name %] -->
    [% # PROCESS dumper.tt dump = updates %]
    [% # PROCESS dumper.tt dump = failed %]
    [% # PROCESS dumper.tt dump = status_options_map %]
    [% # PROCESS dumper.tt dump = users_map %]
    
    [% IF updates.size %]
        <h3>Successful updates:</h3>
        
        <table class="indent">
            <tr>
                <td></td>
                <th scope="col">Lab No</th>
                <th scope="col">Test</th>
                <th scope="col">Status</th>
                <th scope="col">UserID</th>
            </tr>
            [% FOREACH entry IN updates %] 
            <tr>
                <td>[% loop.count %]</td>
                <td>
                    [% data = entry.request; PROCESS site/lab_number.tt want_url = 1 %]
                </td>
                <td>[% entry.lab_test.field_label %]</td>
                <td align="center">
                    [% status_options_map.item(entry.status_option_id).description %]
                </td>
                <td align="center">
                    [% users_map.item(entry.user_id).username | upper %]</td>
            </tr>
            [% END %]
        </table>
        [% IF failed %]
            <p class="warning">
                WARNING: [% failed %] record[% 's' IF failed > 1 %] failed to update
                - probably deleted already (browser back-button &amp; re-submission?).
            </p>
        [% END %]
    [% END %]
<!-- END [% template.name %] -->