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

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

<h1>Modificar Aporte Diferidos <?php echo $model->id; ?></h1>
<?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 ($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,));?>
