RSS Git Download  Clone
Raw Blame History
<!-- BEGIN [% component.name %] -->
    <p class="indent">
      <span class="title">[% test_type | upper %]S:</span>
    </p>

    <table class="results">
      <tr>
        [% count = 1 %]
        [% FOREACH entry IN lab_tests.item(section); # PROCESS dumper.tt dump = entry;
            # skip inactive tests if not selected (selected ones disabled below):
            NEXT IF entry.is_active.match('no') AND NOT entry.selected;
            NEXT IF entry.test_type != test_type;
        %]
        <td width="120" align="right">
            <span class="[% entry.is_active.match('no') ? 'grey' :
                entry.selected ? 'red' : 'normal' %]">
                [% entry.field_label %]</span>:
        </td>
        <td width="50">
          <input type="checkbox" name="test_id" value="[% entry.id %]"
            [% 'checked' IF entry.selected %]
            [% 'disabled' IF entry.is_active.match('no') %] />
        </td>
        [% UNLESS loop.last OR # don't start new table unless multiple of 4:
            count % 4 %]</tr><tr>
        [% END; count = count + 1; %]
        [% END %]
      </tr>
    </table>
<!-- END [% component.name %] -->