    <table class="table table-striped table-bordered table-condensed table-hover">
        <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="fa fa-plus"></span>
                            
                        </a>

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

                    <?php echo $this->paginationControl( $this->paginator ); ?>
                </td>
            </tr>

			<tr>
                <th><?php echo $this->translate( '#title#' ); ?></th>

                <th><?php echo $this->translate( '#type#' ); ?></th>
                <th><?php echo $this->translate( '#key#' ); ?></th>

                <th><?php echo $this->translate( '#locale#' ); ?></th>

                <th><?php echo $this->translate( '#status#' ); ?></th>

                <th></th>
            </tr>

			<?php echo $this->form; ?>
        </thead>

        <tbody>
<?php
	$q = Zend_Locale::getQuestion();
	$types = Content_Model_Page_Table::$types;
	
	$isPublisher = in_array(Alfred_Hod::identity()->trueRole, array('God', 'Admin', 'Publisher'));
	
	if ( count( $this->paginator ) ) {
		foreach ( $this->paginator as $item ) { ?>
            <tr class="<?php echo $this->cycle( array( 'odd', 'even' ) )->next(); ?>">
                <td><?php echo $item->title; ?></td>
				
				<td><?php echo $this->translate($types[$item->type]); ?></td>

                <td><?php echo $item->key; ?></td>
                <td><?php echo $item->locale; ?></td>

                <td><?php echo $this->translate( '#'. $item->status .'#' ); ?></td>

                <td class="actions">
<?php		if ($isPublisher) { ?>
					<a href="<?php echo $this->url( array( 'action' => 'save', 'id' => $item->id ) ); ?>" class="btn btn-default btn-sm" title="<?php echo $this->translate( '#edit#' ); ?>"><span class="fa fa-pencil-square-o"></span></a>
					
					<a href="<?php echo $this->url( array( 'action' => 'delete', 'id' => $item->id ) ); ?>" class="btn btn-sm btn-danger" title="<?php echo $this->translate( '#delete#' ); ?>"><span class="fa fa-trash-o"></span></a>
					
<?php			if ($item->branch != 0) { ?>
					<a href="<?php echo $this->url( array( 'action' => 'save', 'id' => $item->branch ) ); ?>" class="btn btn-default btn-sm"  title="<?php echo $this->translate( '#edit#' ); ?>"><span class="fa fa-pencil-square-o"></span></a>
					
					<a href="<?php echo $this->url( array( 'action' => 'delete', 'id' => $item->branch ) ); ?>" class="btn btn-sm btn-danger" title="<?php echo $this->translate( '#delete#' ); ?>"><span class="fa fa-trash-o"></span></a>
<?php			}
			} else {
				$id = $item->branch == 0 ? $item->id : $item->branch; ?>
					<a href="<?php echo $this->url( array( 'action' => 'save', 'id' => $id ) ); ?>" class="btn btn-sm" title="<?php echo $this->translate( '#edit#' ); ?>"><span class="fa fa-pencil-square-o"></span></a>
<?php		} ?>
                </td>
            </tr>
<?php	} 
	} else{?>
			<tr><td colspan="5"><?php echo $this->translate( '#this list is empty#' ); ?></td></tr>
	<?php } ?>
        </tbody>

        <tfoot>
            <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="fa fa-plus"></span>
                            
                        </a>

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

                    <?php echo $this->paginationControl( $this->paginator ); ?>
                </td>
            </tr>
        </tfoot>
    </table>
