<div class="col-md-7">

<?php   if ( count( $this->paginator ) ) { ?>
    <table class="table table-striped table-bordered table-condensed table-hover">
        <thead>
            <tr>
                <th><?php echo $this->translate( '#code#' ); ?></th>

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

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

                <th width="190"><?php echo $this->translate( '#translations#' ); ?></th>

                <th width="100"></th>
            </tr>
        </thead>

        <tbody>
<?php       $q = Zend_Locale::getQuestion();
			foreach ( $this->paginator as $item ) {
				$enabled  = $item->isEnabled == 1 ? $q['yes'] : $q['no'];

				$class = $this->cycle( array( 'odd', 'even' ) )->next();
				$class.= $item->isDefault == 1 ? ' default' : ''; ?>
            <tr class="<?php echo $class; ?>">
                <td><?php echo $item->code; ?></td>

                <td><?php echo $item->name; ?></td>

    			<td class="<?php echo $enabled; ?>"><?php echo $enabled; ?></td>

                <td class="translations" alfred:translated="<?php echo $item->translationRate(); ?>">
                    <span class="btn-group">
                        
                    <?php echo $this->partial( 'admin-locales/partials/translations.phtml', array( 'formats' => array( 'tmx', 'xls', 'csv' ), 'code' => $item->code ) ); ?>
                    </span>
                </td>

                <td class="actions">
                <span class="btn-group">
                    
                    <a href="<?php echo $this->url( array( 'action' => 'save', 'code' => $item->code ) ); ?>" class="btn btn-sm btn-default">
                        <span class="fa fa-pencil" title="<?php echo $this->translate( '#delete#' ); ?>" ></span>
                    </a>

                    <a href="<?php echo $this->url( array( 'action' => 'delete', 'code' => $item->code ) ); ?>" class="btn btn-sm btn-danger">
                        <span class="fa fa-trash-o" title="<?php echo $this->translate( '#delete#' ); ?>" ></span>
                    </a>
                </span>
                </td>
            </tr>
<?php       } ?>
        </tbody>

        <tfoot>
            <tr>
                <td colspan="3"><?php echo $this->paginationControl( $this->paginator ); ?></td>

                <td><span class="btn-group">
                    <?php echo $this->partial( 'admin-locales/partials/translations.phtml', array( 'formats' => array( 'tmx', 'xls', 'csv' ) ) ); ?>
                    </span>
                </td>

                <td>
                    <span class="float-right">
                        <a href="<?php echo $this->url( array( 'action' => 'save' ) ); ?>" class="btn btn-primary btn-sm">
                            <i class="fa fa-plus"></i>
                            <?php echo $this->translate( '#create#' ); ?>
                        </a>
                    </span>
                </td>
            </tr>
        </tfoot>
    </table>
<?php   } else { ?>
    <p class="center"><?php echo $this->translate( '#this list is empty#' ); ?></p>
<?php   } ?>
</div>