Incam_IntranetNueva/www/protected/views/candidatoDocumento/_form.php
2012-07-12 16:24:08 +00:00

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' => '&nbsp;&nbsp;&nbsp;',
)); ?>
<?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(); ?>