Incam_IntranetNueva/www/protected/views/candidato/_documentos.php
2012-06-06 16:45:38 +00:00

52 lines
2.0 KiB
PHP

<?php
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
?>
<div class="content nopadding ohidden">
<div class="padding1020">
<label><?php echo Yii::t('intranet', 'Currículums'); ?></label>
<div class="marginleft150">
<?php $this->widget('ext.multimodelform.MultiModelForm',array(
'id' => 'id_capacidad', //the unique widget id
'addItemText' => '', // no quiero mostrar el enlace de añadir
'removeText' => 'Eliminar',
'removeConfirm' => '¿Desea eliminar esta capacidad?',
'tableHtmlOptions' => array(
'class' => 'sTable2 lf',
),
'tableView' => true,
'formConfig' => $capacidadFormConfig, //the form configuration array
'model' => $capacidad, //instance of the form model
//if submitted not empty from the controller,
//the form will be rendered with validation errors
'validatedItems' => $capacidadesValidas,
//array of member instances loaded from db
'data' => $capacidad->findAll('candidato_id=:candidato_id', array(':candidato_id'=>$model->id)),
'removeHtmlOptions' => array(
'class' => 'button plain',
),
));
?>
<br clear="all" />
<div class="mmf_addlink">
<?php
echo CHtml::link('Añadir capacidad', '#', array(
'class' => 'button plain',
'rel' => '.id_capacidad_copy',
'id' => 'id_capacidad',
));
?>
</div>
<br clear="all" />
</div>
</div>
</div>