<?php
$id = $this->entry->id;
?>
<tr>
    <td><?= $this->entry->id?></td>
    <td><?= $this->ref?></td>
    <td><?= $this->entry->name. ' '. $this->entry->firstname.'<br /><a href="mailto:'.$this->entry->email.'">'.$this->entry->email.'</a>'?></td>
    <td><?php
                $urlmotivation = $this->url(array('id' => $id , 'action' => 'download' , 'type' => 'motivation') );
                $urlcv = $this->url(array('id' => $id , 'action' => 'download' , 'type' => 'cv') );
        ?>
 
        <a href="<?= $urlmotivation ?>" target="_blank">Lettre de motivation</a><br />
        <a href="<?= $urlcv ?>" target="_blank">CV</a><br />
    </td>
    
    <td class="actions">
        <!--a href="<?php echo $this->url( array( 'action' => 'save', 'id' => $id ) ); ?>" class="btn btn-small" title="<?php echo $this->translate( '#edit#' ); ?>"><span class="icon-pencil"></span></a-->
        <a href="<?php echo $this->url( array( 'action' => 'delete', 'id' => $id ) ); ?>" class="btn btn-small btn-danger" title="<?php echo $this->translate( '#delete#' ); ?>"><span class="icon-trash"></span></a>
    </td>
</tr>