?> <?php echo $form->error($model, 'tanggal_selesai_pangkat'); ?> </div> </div> <div class="tab-pane fade" id="dtjabatan"> <div class="row"> <?php echo $form->labelEx($model, 'id_status_jabatan'); ?> <?php $this->widget('ext.chosen.Chosen', array('name' => 'Pegawai[id_status_jabatan]', 'value' => $model->id_status_jabatan, 'data' => array('' => 'Semua') + CHtml::listData(StatusJabatan::model()->findAll(), 'id_status_jabatan', 'nama_jabatan'))); ?> <?php echo $form->error($model, 'id_status_jabatan'); ?> </div> <br> <div class="row"> <?php echo $form->labelEx($model, 'id_jabatan'); ?> <?php $this->widget('ext.chosen.Chosen', array('name' => 'Pegawai[id_jabatan]', 'value' => $model->id_jabatan, 'data' => array('' => 'Semua') + CHtml::listData(Jabatan::model()->findAll(), 'id_jabatan', 'nama_jabatan'))); ?> <?php
/** * 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 StatusJabatan the loaded model * @throws CHttpException */ public function loadModel($id) { $model = StatusJabatan::model()->findByPk($id); if ($model === null) { throw new CHttpException(404, 'The requested page does not exist.'); } return $model; }