Example #1
0
						<?php 
echo CHtml::activeTextArea($model, 'alergy', array('size' => 50, 'maxlength' => 50, 'class' => 'validate[required] form-control'));
?>
						<?php 
echo CHtml::error($model, 'alergy');
?>
					</div>
				</div>
				
				<div class="form-group">
					<?php 
echo CHtml::activeLabelEx($model, 'mcu_status', array('class' => $label_class));
?>
					<div class="col-md-6 col-xs-12">
						<?php 
echo CHtml::activeRadioButtonList($model, 'mcu_status', MastersEmployeeMcu::model()->getStatuses(), array('class' => 'validate[required] form-control iradio', 'separator' => ' &nbsp; &nbsp; &nbsp; &nbsp; '));
?>
						<?php 
echo CHtml::error($model, 'mcu_status');
?>
					</div>
				</div>
			</div>
			
			<div class="panel-footer">
				<?php 
/*echo CHtml::button('Clear Form', array('class'=>'btn btn-default'));*/
?>
				<?php 
echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save', array('class' => 'btn btn-primary pull-right'));
?>
 /**
  * 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 MastersEmployeeMcu the loaded model
  * @throws CHttpException
  */
 public function loadModel($id)
 {
     $model = MastersEmployeeMcu::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }