<?php
$this->breadcrumbs=array(
	'Aporte Fondo Diferidos'=>array('index'),
	$model->id=>array('view','id'=>$model->id),
	'Update',
);

$this->menu=array(
	array('label'=>'List AporteFondoDiferido','url'=>array('index')),
	array('label'=>'Create AporteFondoDiferido','url'=>array('create')),
	array('label'=>'View AporteFondoDiferido','url'=>array('view','id'=>$model->id)),
	array('label'=>'Manage AporteFondoDiferido','url'=>array('admin')),
);
?>

<br/>
<br/>
<h2 style="text-align: center;">Actualizar aportantes no definidos <?php echo $model->cedula; ?></h2>
<?php
    foreach(Yii::app()->user->getFlashes() as $key => $message) {
        echo '<div class="alert alert-' . $key . '">' . $message . "</div>\n";
    }
?>

<?php if($planillas):?>
<fieldset>
    <legend>Datos asociados a la cédula:<?php echo $model->cedula;?> </legend>
<table class="table table-condensed">
    <tr>
        <th>N°</th>
        <th>Nombre</th>
        <th>Apellido</th>
        <th>Unidad</th>
        <th>Fecha de Ingreso</th>
        <th>Estatus</th>    
    </tr>
  
 <?php foreach ($planillas as $key=>$planilla):?> 
    
    <tr class="<?php echo $planilla->colorEstatus();?>">
        <td><?php echo $key+1; ?></td>
        <td><?php echo $planilla->nombre; ?></td>
        <td><?php echo $planilla->apellidos; ?></td>
        <td><?php echo ($planilla->unidad->descripcion)?$planilla->unidad->descripcion:''; ?></td>
        <td><?php echo $planilla->fechaingreso; ?></td>
        <td><?php echo (isset($planilla->idEstatus->nombre_estatus))? $planilla->idEstatus->nombre_estatus:''; ?></td>
    </tr>
    
 <?php endforeach; ?>   
    
    
</table>
</fieldset>
<?php endif;?>

<?php echo $this->renderPartial('_form',array('model'=>$model,'modelAsociado'=>$modelAsociado)); ?>