<button type="button" class="btn btn-default" id="choose_employee">Choose</button> </span> </div> <?php echo CHtml::error($model, 'employee_id'); ?> </div> </div> <div class="form-group"> <?php echo CHtml::activeLabelEx($model, 'language_id', array('class' => $label_class)); ?> <div class="col-md-6 col-xs-12"> <?php echo CHtml::activeDropDownList($model, 'language_id', CHtml::listData(ReferenceLanguages::model()->byOrder()->findAll(), 'id', 'name'), array('data-placeholder' => at('Please select one...'), 'prompt' => '', 'data-live-search' => 'true', 'class' => 'validate[required] form-control select')); ?> <?php echo CHtml::error($model, 'language_id'); ?> </div> </div> <div class="form-group"> <?php echo CHtml::activeLabelEx($model, 'level', array('class' => $label_class)); ?> <div class="col-md-6 col-xs-12"> <?php echo CHtml::activeRadioButtonList($model, 'level', MyHelper::getLangAbility(), array('class' => 'validate[required] form-control iradio', 'separator' => ' ')); ?>
/** * 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 ReferenceLanguages the loaded model * @throws CHttpException */ public function loadModel($id) { $model = ReferenceLanguages::model()->findByPk($id); if ($model === null) { throw new CHttpException(404, 'The requested page does not exist.'); } return $model; }