Skip to content

Commit

Permalink
Creacion deoportunidades
Browse files Browse the repository at this point in the history
  • Loading branch information
jtenorio committed Apr 25, 2012
1 parent a13d3cc commit dcaefc9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,12 @@ public function actionUpdate($id)
$this->redirect(array('view','id'=>$model->id));
}

//Obtener los clientes para pasarle al widget
$clientes = Cliente::getAllCliente();

$this->render('update',array(
'model'=>$model,
'clientes'=>$clientes,
));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
);
?>

<h1>Update Oportunidad <?php echo $model->id; ?></h1>
<h1>Oportunidad <?php echo $model->nombre_oportunidad; ?></h1>

<?php echo $this->renderPartial('_form', array('model'=>$model)); ?>
<?php echo $this->renderPartial('_form', array('model'=>$model,
'clientes'=>$clientes,)); ?>
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@
);
?>

<h1>View Oportunidad #<?php echo $model->id; ?></h1>
<h1><?php echo $model->nombre_oportunidad; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
'data'=>$model,
'attributes'=>array(
'id',
'nombre_oportunidad',
'fecha_creacion',
'fecha_modificacion',
'tomacontacto',
'cantidad_oportunidad',
'tipo_oportunidad',
Expand All @@ -30,7 +28,6 @@
'etapa_venta',
'probabilidad',
'cliente_id',
'estado_sistema',
'mediocontacto',
'detallecontacto',
),
Expand Down

0 comments on commit dcaefc9

Please sign in to comment.