  <table>
    <thead>
    <th></th>
    <th>Filename</th>
    <th>Name</th>
    <th>Desc</th>
    </thead>
    <tbody>
<?php 
foreach($attachments as $index => $attachment) {
?>
    <tr>
    <td><?php echo $form->input("DocumentAttachment.{$index}.id", array('type'=>'checkbox', 'value'=> $attachment['DocumentAttachment']['id'], 'label' => false, 'class'=>'documentAttachment-checkbox')); ?></td>
    <td>  
    <?php echo $html->link($attachment['Attachment']['filename'], '/attachments/view/'.$attachment['Attachment']['id']); ?>
    </td>  
    <td><?php echo $attachment['Attachment']['name']; ?></td>
    <td><?php echo $attachment['Attachment']['description']; ?></td>
</tr>

  <?php } ?>
  </tbody> 
  </table>
