public function actionForm()
 {
     $this->cekLogin('form');
     if ($this->isWizard) {
         $this->backAction = 'division';
     }
     $model = new RegistrationForm();
     $model->initComponent($this->rec->id, O::app()->user->id);
     $form = new CForm(array('elements' => $model->elements, 'buttons' => array('submit-form' => array('type' => 'submit', 'label' => O::t('oprecx', 'Save'))), 'activeForm' => array('class' => 'CActiveForm'), 'attributes' => array('id' => 'reg-form')), $model);
     if ($form->submitted('save') && $form->validate() && $model->save()) {
         //if ($this->isWizard) $this->redirect($this->getURL('interview', array('wiz' => 1)));
         if ($this->afterSave('interview')) {
             return;
         }
     }
     $this->render('form', array('form' => $form));
 }