  [% META title = 'Admin &raquo; Linked Lab Tests' -%]
<!-- BEGIN [% template.name %] -->

    [% IF data.size %]
        <p class="header">Linked Lab Tests</p>
        <table class="indent">
            <tr>
                <td class="borderless"></td>
                <th>Parent Test</th>
                <th>Linked Test</th>
            </tr>
            [% FOREACH test IN data %]
                <tr>
                    <td>[% loop.count %]</td>
                    <td>
                        [% test.parent_lab_test.field_label %]
                        [[% test.parent_lab_test.lab_section.section_name %]]
                    </td>
                    <td>
                        [% test.linked_lab_test.field_label %]
                        [[% test.linked_lab_test.lab_section.section_name %]]
                    </td>
                </tr>
            [% END %]
        </table>
    [% ELSE %]
        <p class="warning">No linked lab tests configured</p>
    [% END %]
<!-- END [% template.name %] -->
