
<?php
$role = Alfred_Hod::identity('trueRole');

if(!isset($this->isMini)){
    $this->isMini = false;
}

$this->inlineScript()->appendScript( "var EmptyRow = {$this->emptyRow};" );

?>

<div class="row">
    <div id="Taxo_Taxo" data-module="Taxo_Taxo" data-model="TaxoModel" class="DT_Container<?= $this->isMini?' miniDT':''?>">
        <p class=""><a href="#" class="btn btn-lg btn-primary" data-action="addItem" ><i class="fa fa-plus"></i> Add</a></p>
        <table cellpadding="0" cellspacing="0" border="0" class="DT_Table table table-striped table-bordered"></table>

        

        <div class="modal fade" id="formModalProjects">
          <div class="modal-dialog">
            <div class="modal-content">
              <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">Taxo</h4>
              </div>
              <div class="modal-body">
                <?php echo $this->form; ?>
              </div>
              <div class="modal-footer">
                <button type="button" class="btn btn-sm btn-default" data-dismiss="modal">Close</button>
                <button type="button" class="btn btn-primary">Save changes</button>
              </div>
            </div><!-- /.modal-content -->
          </div><!-- /.modal-dialog -->
        </div><!-- /.modal -->


        <pre data-bind="text: ko.toJSON(taxo, null, 2)"></pre> 

    </div>
</div>



<?php 

$this->inlineScript()
    ->appendFile( $this->baseUrl( '/resources/application/modules/taxonomy/taxo-admin.js' ))
;

 /*
    <table class="table table-striped table-bordered table-condensed table-hover" style="width:600px;">
        <thead>
        	<tr>
                <td colspan="2">
                    <span class="pull-right">
                        <a href="<?php echo $this->url( array( 'action' => 'save' ) ); ?>" class="btn btn-primary">
                            <span class="fa fa-plus"></span>
                            <?php echo $this->translate( '#create#' ); ?>
                        </a>
                    </span>

                    <?php echo $this->paginationControl( $this->paginator ); ?>
                </td>
            </tr>
            <tr>
                <th><?php echo $this->translate( '#label#' ); ?></th>
               
               
                 <th></th>
            </tr>
            <form id="searchForm">
            <tr class="search-row">
            	<td><?= $this->formText('label',$this->search['label'],array('style'=>'width:96%'))?></td>
            	
            	<td><?= $this->formSubmit('search','#search#',array('class'=>'btn'))?></td>
            </tr>
            </form>
        </thead>

        <tbody>
<?php   if ( count( $this->paginator ) ) {
            foreach ( $this->paginator as $entry ) {
                echo $this->partial( 'terms-admin/partials/item.phtml', array( 'entry' => $entry ) );
            }
		} else { ?>
    	<tr><td colspan="8"><?php echo $this->translate( '#this list is empty#' ); ?></td></tr>
<?php   } ?>
        </tbody>

        <tfoot>
            <tr>
                <td colspan="2">
                    <span class="pull-right">
                        <a href="<?php echo $this->url( array( 'action' => 'save' ) ); ?>" class="btn btn-primary">
                            <span class="fa fa-plus"></span>
                            <?php echo $this->translate( '#create#' ); ?>
                        </a>
                    </span>

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

*/