<div class="portlet box blue">
<i class="icon-reorder"></i>
<?php if($model->scenario=="insert") { ?>
 <div class="portlet-title"><span class="box-title">Add Employee Experience</span>
<?php }
 else {?>
 <div class="portlet-title"><span class="box-title">Edit Employee Experience</span>
<?php }?>
</div>
<div class="form two-coloumn">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'employee-experience-trans-form',
	'enableAjaxValidation'=>true,
	'clientOptions'=>array(
			'validateOnSubmit'=>true,
			),
	'htmlOptions'=>array('enctype'=>'multipart/form-data'),
)); 
?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php //echo $form->errorSummary($model); ?>

	
	<div class="row">
		<?php echo $form->labelEx($emp_exp,'employee_experience_organization_name'); ?>
		<?php echo $form->textField($emp_exp,'employee_experience_organization_name',array('size'=>45,'maxlength'=>50)); ?><span class="status">&nbsp;</span>
		<?php echo $form->error($emp_exp,'employee_experience_organization_name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($emp_exp,'employee_experience_designation'); ?>
		<?php echo $form->textField($emp_exp,'employee_experience_designation',array('size'=>25,'maxlength'=>25)); ?><span class="status">&nbsp;</span>
		<?php echo $form->error($emp_exp,'employee_experience_designation'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($emp_exp,'employee_experience_from'); ?>
		<?php $this->widget('CustomDatePicker', array(
		    'model'=>$emp_exp, 
		    'attribute'=>'employee_experience_from',
		    'options'=>array(
			'dateFormat'=>'dd-mm-yy',
			'changeYear'=>'true',
			'changeMonth'=>'true',
			'showAnim' =>'slide',
			'yearRange'=>'1900:'.(date('Y')+1),
			'buttonImage'=>Yii::app()->request->baseUrl.'/images/calendar.png',			
		    ),
			'htmlOptions'=>array(
			'style'=>'width:80px;vertical-align:top',
			'readonly'=>true,
		    ),
			
		));
		
		?>
		<span class="status">&nbsp;</span>
		<?php echo $form->error($emp_exp,'employee_experience_from',array('class'=>'errorMessage1')); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($emp_exp,'employee_experience_to'); ?>
		<?php $this->widget('CustomDatePicker', array(
		    'model'=>$emp_exp, 
		    'attribute'=>'employee_experience_to',
		    'options'=>array(
			'dateFormat'=>'dd-mm-yy',
			'changeYear'=>'true',
			'changeMonth'=>'true',
			'showAnim' =>'slide',
			'yearRange'=>'1900:'.(date('Y')+1),
			'buttonImage'=>Yii::app()->request->baseUrl.'/images/calendar.png',			
		    ),
			'htmlOptions'=>array(
			'style'=>'width:80px;vertical-align:top',
			'readonly'=>true,
		    ),
			
		));
		
		?>
		<span class="status">&nbsp;</span>
		<?php echo $form->error($emp_exp,'employee_experience_to',array('class'=>'errorMessage1')); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Add' : 'Save', array('class'=>'submit')); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form --></div>
