?> <?php echo $form->textFieldGroup($model, 'nombre_completo', array('widgetOptions' => array('htmlOptions' => array('class' => 'span5', 'maxlength' => 100)))); ?> <?php echo $form->passwordFieldGroup($model, 'password', array('widgetOptions' => array('htmlOptions' => array('class' => 'span5', 'maxlength' => 256)))); ?> <?php //echo $form->textFieldGroup($model,'fk_idioma',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5')))); ?> <?php echo $form->dropDownListGroup($model, 'fk_idioma', array('wrapperHtmlOptions' => array('class' => 'col-sm-5'), 'widgetOptions' => array('data' => CHtml::listData(Idioma::model()->findAll(), 'id_idioma', 'idioma'), 'htmlOptions' => array('empty' => 'Seleccione su idioma', 'style' => 'border:1px solid red;')))); ?> <?php //echo $form->textFieldGroup($model,'fk_pais',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5')))); ?> <?php echo $form->dropDownListGroup($model, 'fk_pais', array('wrapperHtmlOptions' => array('class' => 'col-sm-5'), 'widgetOptions' => array('data' => CHtml::listData(Pais::model()->findAll(array('order' => 'pais')), 'id_pais', 'pais'), 'htmlOptions' => array('empty' => 'Seleccione su País')))); ?> <?php //echo $form->textFieldGroup($model,'fk_pregunta_secreta',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5')))); ?>
/** * 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 the ID of the model to be loaded */ public function loadModel($id) { $model = Idioma::model()->findByPk($id); if ($model === null) { throw new CHttpException(404, 'The requested page does not exist.'); } return $model; }
echo $form->labelEx($model, 'Formato'); ?> <?php echo $form->dropDownList($model, 'Formato', array('PAPEL' => 'PAPEL', 'EBOOK' => 'EBOOK')); ?> <?php echo $form->error($model, 'Formato'); ?> </div> <div class="row"> <?php echo $form->labelEx($model, 'IdIdioma'); ?> <?php echo $form->dropDownList($model, 'IdIdioma', CHtml::listData(Idioma::model()->findAll(array('order' => 'Nombre')), 'IdIdioma', 'Nombre'), array('prompt' => 'Seleccione un Idioma')); ?> <?php echo $form->error($model, 'IdIdioma'); ?> </div> <div class="row"> <?php echo $form->labelEx($model, 'Resumen'); ?> <?php echo $form->textArea($model, 'Resumen', array('rows' => 6, 'cols' => 50)); ?> <?php echo $form->error($model, 'Resumen');