<table border="0" cellpadding="0" cellspacing="2" class="FormLayout">
 <tr>
  <td width="20">
   <input type="checkbox" value="" name="criterion_ids:list" id=""
          tal:attributes="value here/getId;
                          id string:cb_${here/getId};
                         " />
  </td>
  <td align="left">
   <label for=""
            tal:attributes="for string:cb_${here/getId}">
            <strong title=""
                    tal:attributes="title here/Description">Integer:</strong>
            <tt tal:content="here/Field">Field</tt>
   </label>
   <input type="hidden" name="criteria.id:records" value=""
          tal:attributes="value here/getId" />
  </td>
 </tr>
 <tr>
  <td width="20">&nbsp;</td>
  <td>
   <strong>Value:</strong>
   <input type="text" name="criteria.value:records" value="" size="40"
            tal:attributes="value here/getValueString" />
  </td>
 </tr>
 <tr>
  <td width="20">&nbsp;</td>
  <td>
   <strong>Direction:</strong>
   <input type="radio" name="" value="min" id=""
          tal:attributes="checked python:here.direction=='min';
                          id string:${here/getId}_min;
                          name string:criteria.direction__${here/getId}:records;
                         " />
   <label for=""
          tal:attributes="for string:${here/getId}_min">Minimum</label>

   <input type="radio" name="" value="max" id=""
          tal:attributes="checked python:here.direction=='max';
                          id string:${here/getId}_max;
                          name string:criteria.direction__${here/getId}:records;
                         " />
   <label for=""
          tal:attributes="for string:${here/getId}_max">Maximum</label>

   <input type="radio" name="" value="min:max" id=""
          tal:attributes="checked python:here.direction=='min:max';
                          id string:${here/getId}_minmax;
                          name string:criteria.direction__${here/getId}:records;
                         " />
   <label for=""
          tal:attributes="for string:${here/getId}_minmax">Min/Max</label>
  </td>
 </tr>
</table>

