git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_IntranetNueva/trunk@68 77cfc57b-8ef4-1849-9df6-4a38aa5da120
52 lines
1.9 KiB
PHP
52 lines
1.9 KiB
PHP
<?php
|
|
Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl . '/js/custom/elements.js');
|
|
?>
|
|
|
|
<?php $form=$this->beginWidget('CActiveForm', array(
|
|
'id'=>'candidato-documento-form',
|
|
'enableAjaxValidation'=>false,
|
|
'htmlOptions' => array('enctype' => 'multipart/form-data'),
|
|
//'clientOptions'=>array('validateOnSubmit'=>true, 'validateOnChange'=>true),
|
|
)); ?>
|
|
|
|
<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 -->
|
|
|
|
<?php echo $form->errorSummary($model, "<a class='close'></a>", "", array('class'=>"notification msgerror")); ?>
|
|
</div>
|
|
<br clear="all" />
|
|
|
|
|
|
<div class="widgetbox two_third last form_default">
|
|
<h3>
|
|
<span>
|
|
<legend><?php echo Yii::t('intranet', 'Currículum'); ?></legend>
|
|
</span>
|
|
</h3>
|
|
<div class="content nopadding">
|
|
<div class="padding1020">
|
|
<?php echo $form->labelEx($model,'tipo', array('class'=>'nopadding')); ?>
|
|
<div class="marginleft150">
|
|
<?php echo CHtml::activeRadioButtonList($model, 'tipo', $model->OpcionesTipo, array(
|
|
'template' => '{input}{label}',
|
|
'separator' => ' ',
|
|
)); ?>
|
|
<?php echo $form->error($model,'tipo', array('class'=>'errortext')); ?>
|
|
</div>
|
|
</div>
|
|
<div class="padding1020 borderbottom">
|
|
<?php echo $form->labelEx($model,'file'); ?>
|
|
<div class="marginleft150">
|
|
<?php echo CHtml::activeFileField($model, 'file'); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<br clear="all" />
|
|
<div class="form_default">
|
|
<button type="submit"><?php echo $model->isNewRecord ? 'Crear' : 'Guardar'; ?></button>
|
|
</div>
|
|
<?php $this->endWidget(); ?>
|