<?php
//if ($model->parent_id && $model->obj_type_id && $model->isChild()) {
//    echo '<h3>' . $model->objType->name . '</h3>';
//    return;
//}
?>

<div class="form-group">
    <?php echo $form->labelEx($model, 'obj_type_id'); ?>
    <?php echo $form->dropDownList($model, 'obj_type_id', Apartment::getObjTypesArray(false, false), array('class' => 'span3 form-control', 'id' => 'obj_type')); ?>
    <?php echo $form->error($model, 'obj_type_id'); ?>
</div>