<?php

$defaultTypes = Jobs_Model_Jobs_Table::$_types;
$defaultStatus = Content_Model_Page_Table::$statuses ;
?>
<table class="table table-striped table-bordered table-condensed">
        <thead>
			<tr>
                                        <td colspan="6">
                                             <span class="main-actions pull-right">
                                                <a href="<?php echo $this->url( array( 'action' => 'save' ) ); ?>" class="btn btn-primary" title="<?php echo $this->translate( '#create#' ); ?>" rel="tooltip">
                                                    <span class="icon-plus"></span>

                                                </a>

                                                <a href="<?php echo $this->url( array( 'action' => 'trash' ) ); ?>" class="btn" rel="tooltip" title="Corbeille">
                                                    <span class="icon-trash"></span>
                                                </a>
                                            </span>

                                            <?php echo $this->paginationControl( $this->paginator ); ?>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                        <td>Ref</td>
                                        <td>label</td>
                                        <td>Type</td>
                                        <td>Status</td>
                                        <td></td>
                                    </tr>
        <form>
                                    <tr>
                                        <td></td>
                                        <td><?= $this->formText('ref' , $this->search['ref']  ); ?></td>
                                        <td></td>    
                                        <td><?= $this->formSelect('type' ,  $this->search['type'], null , array('' => '' ) + $defaultTypes  ); ?></td>
                                        <td><?= $this->formSelect('status' ,  $this->search['status'], null , array('' => '' ) + $defaultStatus ); ?></td>
                                        <td><?= $this->formSubmit('search' , 'search') ; ?>
                                    </tr>
                                        </form>
        </thead>
        <tbody>
            
            <?php
             if( count( $this->paginator)  > 0 ){
                 foreach($this->paginator as $entry ){
                     echo $this->partial('/admin/partials/entry.phtml' , array( 'entry' => $entry , 'defaultTypes' => $defaultTypes  , 'defaultStatus' => $defaultStatus ) );
                 }
             } 
             else{
                 echo '<tr><td colspan="6">'.$this->translate( '#this list is empty#' ) .'</td></tr>';
             }
            
            ?>
            
        </tbody>
        
        
    </table>