<table>
<?py cycle = new_cycle('odd', 'even') ?>
<?py curr_id = params['item_id'] ?>
<?py for item in items: ?>
  <tr class="#{cycle()}" #{tagattrs(style=(item.readonly and 'color:gray'))}>
    <td><input type="checkbox" name="items" value="#{item.id}" #{checked(curr_id==item.id)} /></td>
    <td>${item.name}</td>
  </tr>
<?py #endfor ?>
</table>
