2012-03-22 15:58:23 +00:00
|
|
|
<?php
|
|
|
|
|
Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl . '/js/custom/elements.js');
|
|
|
|
|
?>
|
2012-03-06 20:10:07 +00:00
|
|
|
|
|
|
|
|
<?php $form=$this->beginWidget('CActiveForm', array(
|
|
|
|
|
'id'=>'candidato-capacidad-form',
|
2012-03-27 14:43:43 +00:00
|
|
|
//'enableAjaxValidation'=>true,
|
2012-03-22 15:58:23 +00:00
|
|
|
'clientOptions'=>array('validateOnSubmit'=>true, 'validateOnChange'=>true),
|
2012-03-06 20:10:07 +00:00
|
|
|
)); ?>
|
|
|
|
|
|
2012-03-22 15:58:23 +00:00
|
|
|
<div class="two_third last">
|
|
|
|
|
<div class="notification msginfo">
|
|
|
|
|
<a class="close"></a>
|
|
|
|
|
<p>Los campos marcados con <span class="required">*</span> son obligatorios.</p>
|
|
|
|
|
</div><!-- notification msginfo -->
|
2012-03-06 20:10:07 +00:00
|
|
|
|
2012-03-22 15:58:23 +00:00
|
|
|
<?php echo $form->errorSummary($model, "<a class='close'></a>", "", array('class'=>"notification msgerror")); ?>
|
|
|
|
|
</div>
|
|
|
|
|
<br clear="all" />
|
2012-03-06 20:10:07 +00:00
|
|
|
|
|
|
|
|
|
2012-03-22 15:58:23 +00:00
|
|
|
<div class="widgetbox two_third last form_default">
|
|
|
|
|
<h3>
|
|
|
|
|
<span>
|
2012-03-27 18:53:49 +00:00
|
|
|
<legend>Capacidad profesional</legend>
|
2012-03-22 15:58:23 +00:00
|
|
|
</span>
|
|
|
|
|
</h3>
|
|
|
|
|
<div class="content nopadding">
|
|
|
|
|
<div class="padding1020">
|
|
|
|
|
<?php echo $form->labelEx($model,'candidato_id'); ?>
|
|
|
|
|
<div class="marginleft150">
|
|
|
|
|
<?php
|
|
|
|
|
$lista = CHtml::listData(Candidato::model()->findAll(),'id', 'nombreCompleto');
|
|
|
|
|
echo $form->dropDownList(
|
|
|
|
|
$model,
|
|
|
|
|
'candidato_id',
|
|
|
|
|
$lista,
|
|
|
|
|
array(
|
|
|
|
|
'empty'=>'<Seleccionar>',
|
|
|
|
|
'class'=>'lf',
|
|
|
|
|
));
|
|
|
|
|
?>
|
|
|
|
|
<?php echo $form->error($model,'candidato_id', array('class'=>'errortext')); ?>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="padding1020">
|
|
|
|
|
<?php echo $form->labelEx($model,'perfil_tecnico_id'); ?>
|
|
|
|
|
<div class="marginleft150">
|
|
|
|
|
<?php
|
|
|
|
|
$lista = CHtml::listData(PerfilTecnico::model()->findAll(),'id', 'descripcion');
|
|
|
|
|
echo $form->dropDownList(
|
|
|
|
|
$model,
|
|
|
|
|
'perfil_tecnico_id',
|
|
|
|
|
$lista,
|
|
|
|
|
array(
|
|
|
|
|
'empty'=>'<Seleccionar>',
|
|
|
|
|
'class'=>'lf',
|
|
|
|
|
));
|
|
|
|
|
?>
|
|
|
|
|
<?php echo $form->error($model,'perfil_tecnico_id', array('class'=>'errortext')); ?>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2012-03-28 16:51:53 +00:00
|
|
|
<div class="padding1020 borderbottom">
|
2012-03-22 15:58:23 +00:00
|
|
|
<?php echo $form->labelEx($model,'meses_perfil_tecnico'); ?>
|
|
|
|
|
<div class="marginleft150">
|
|
|
|
|
<?php echo $form->textField($model,'meses_perfil_tecnico',array('maxlength'=>255,'class'=>'sf')); ?>
|
|
|
|
|
<?php echo $form->error($model,'meses_perfil_tecnico', array('class'=>'errortext')); ?>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2012-03-28 16:51:53 +00:00
|
|
|
<div class="padding1020 borderbottom">
|
|
|
|
|
<?php $this->renderPartial('_tecnologias', array(
|
|
|
|
|
'model'=>$model,
|
|
|
|
|
'tecnologia'=>$tecnologia,
|
|
|
|
|
'tecnologiasValidas'=>$tecnologiasValidas,
|
|
|
|
|
)); ?>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="padding1020">
|
|
|
|
|
<?php $this->renderPartial('_funcionales', array(
|
2012-03-27 18:53:49 +00:00
|
|
|
'model'=>$model,
|
2012-03-28 16:51:53 +00:00
|
|
|
'funcional'=>$funcional,
|
|
|
|
|
'funcionalesValidas'=>$funcionalesValidas,
|
2012-03-27 18:53:49 +00:00
|
|
|
)); ?>
|
2012-03-28 16:51:53 +00:00
|
|
|
</div>
|
2012-03-27 18:53:49 +00:00
|
|
|
</div>
|
2012-03-22 15:58:23 +00:00
|
|
|
</div>
|
|
|
|
|
<br clear="all" />
|
|
|
|
|
|
|
|
|
|
<div class="widgetbox two_third last form_default">
|
|
|
|
|
<h3>
|
|
|
|
|
<span>
|
|
|
|
|
<legend><?php echo Yii::t('intranet', 'Observaciones'); ?></legend>
|
|
|
|
|
</span>
|
|
|
|
|
</h3>
|
|
|
|
|
<div class="content nopadding">
|
2012-03-27 16:11:37 +00:00
|
|
|
<div class="padding1020">
|
|
|
|
|
<?php echo $form->labelEx($model,'observaciones'); ?>
|
|
|
|
|
<div class="marginleft150">
|
|
|
|
|
<?php echo $form->textArea($model, 'observaciones', array('id'=>'wysiwyg', 'class'=>'lf')); ?>
|
|
|
|
|
<?php echo $form->error($model,'telefono_fijo', array('class'=>'errortext')); ?>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2012-03-22 15:58:23 +00:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<br clear="all" />
|
|
|
|
|
<div class="form_default">
|
|
|
|
|
<button type="submit"><?php echo $model->isNewRecord ? 'Crear' : 'Guardar'; ?></button>
|
|
|
|
|
</div>
|
2012-03-06 20:10:07 +00:00
|
|
|
<?php $this->endWidget(); ?>
|