<?php

/* @var $this BancosCuentasController */
/* @var $model BancosCuentas */
/* @var $form CActiveForm */
?>

<div class="form">

<?php 
$form = $this->beginWidget('CActiveForm', array('id' => 'bancos-cuentas-form', 'enableAjaxValidation' => true));
?>

<?php 
$elBanco = Bancos::model()->findByPk($_GET['idBanco']);
?>

<div class="row">
	<div class="span2"></div>
	<div class="span8">
		<?php 
$this->widget('zii.widgets.CDetailView', array('data' => $elBanco, 'attributes' => array('nombre')));
?>
	</div>
	<div class="span2"></div>
</div>

	<p class="note">Campos con <span class="required">*</span> son requeridos.</p>

	<?php 
echo $form->errorSummary($model);
 /**
  * Returns the data model based on the primary key given in the GET variable.
  * If the data model is not found, an HTTP exception will be raised.
  * @param integer $id the ID of the model to be loaded
  * @return Bancos the loaded model
  * @throws CHttpException
  */
 public function loadModel($id)
 {
     $model = Bancos::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }