Example #1
0
<?php 
$form = $this->beginWidget('CActiveForm', array('id' => 'user-specialist-projects-form', 'enableAjaxValidation' => false));
?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php 
echo $form->errorSummary($model);
?>

	<div class="row">
		<?php 
echo $form->labelEx($model, 'user_id');
?>
		<?php 
echo $form->dropDownList($model, 'user_id', UserApi::getUserList(), array('empty' => 'Select'));
?>
		<?php 
echo $form->error($model, 'user_id');
?>
	</div>

	<div class="row">
		<?php 
echo $form->labelEx($model, 'specialist_type_id');
?>
		<?php 
echo $form->dropDownList($model, 'specialist_type_id', CHtml::listData(Specializations::model()->findAll(), 'id', 'specialist'), array('empty' => 'Select'));
?>
		<?php 
echo $form->error($model, 'specialist_type_id');