echo $form->labelEx($model, 'ID_Room:', array('class' => 'control-label')); ?> <?php echo $form->dropdownList($model, 'ID_Room', Room::getRoomOptions(), array('class' => 'form-control')); ?> <?php echo $form->error($model, 'ID_Room', array('class' => 'text-danger')); ?> </div> <div class="form-group"> <?php echo $form->labelEx($model, 'ID_Hour:', array('class' => 'control-label')); ?> <?php echo $form->dropdownList($model, 'ID_Hour', Hour::getHourOptions(), array('class' => 'form-control')); ?> <?php echo $form->error($model, 'ID_Hour', array('class' => 'text-danger')); ?> </div> <div class="form-group"> <?php echo $form->labelEx($model, 'ID_Subject:', array('class' => 'control-label')); ?> <?php echo $form->dropdownList($model, 'ID_Subject', Subject::getSubjectOptions(), array('class' => 'form-control')); ?> <?php echo $form->error($model, 'ID_Subject', array('class' => 'text-danger'));