<div class="shipments index">
    <h2><?php echo ucfirst($type) .' Shipments'?></h2>


    <?php echo $javascript->link('shipment_index');?>
    <p>
	<?php
	echo $paginator->counter(array(
	'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));
	?></p>
    <button class="newShipment">New Shipment</button>




    <div class="scrollHorizontal">
	<? //$this->element('shipment_index_'.$type);?>
	<?=$this->element('shipment_index_all');?>
    </div>

</div>
<div class="paging">
    <?php echo $paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
	| 	<?php echo $paginator->numbers();?>
    <?php echo $paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
</div>
<div class="actions">
    <ul>
	<li><button class="newShipment">New Shipment</button></li>
    </ul>
</div>

<div id="add-form" title="New Shipment">
</div>

<div id="edit-form" title="Edit Shipment">

</div>


<?php debug($shipments); ?>