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;
          NEXT IF entry.test_type != test_type OR entry.is_active.match('no');
        %]
        <td width="120" align="right">
            <span class="[% 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 %] />
        </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 %] -->