Funciona: - Usuario - Empresa git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_PROFIND_Web/trunk@2 3fe1ab16-cfe0-e34b-8c9f-7d8c168d430d
53 lines
1.8 KiB
PHP
53 lines
1.8 KiB
PHP
<?php
|
|
|
|
/*
|
|
* To change this template, choose Tools | Templates
|
|
* and open the template in the editor.
|
|
*/
|
|
?>
|
|
|
|
<div class="padding1020 borderbottom">
|
|
<label><?php echo Yii::t('intranet', 'Agentes'); ?></label>
|
|
<?php
|
|
echo CHtml::link(
|
|
Yii::t('intranet', 'Nuevo agente'),
|
|
// $this->createUrl('candidatoCapacidad/create', array('cid'=>$candidatoId)),
|
|
array(
|
|
'class' => 'anchorbutton button_white',
|
|
)
|
|
);
|
|
|
|
?>
|
|
|
|
<div class="marginleft150">
|
|
<?php $this->widget('ext.multimodelform.MultiModelForm',array(
|
|
'id' => 'id_idioma', //the unique widget id
|
|
'addItemText' => '', // no quiero mostrar el enlace de añadir
|
|
'removeText' => 'Eliminar',
|
|
'removeConfirm' => '¿Desea eliminar este idioma?',
|
|
'tableHtmlOptions' => array(
|
|
'class' => 'sTable2',
|
|
'width' => '100%',
|
|
),
|
|
'tableView' => true,
|
|
// 'formConfig' => $idiomaFormConfig, //the form configuration array
|
|
// 'model' => $model, //instance of the form model
|
|
|
|
//if submitted not empty from the controller,
|
|
//the form will be rendered with validation errors
|
|
// 'validatedItems' => $agentesValidos,
|
|
|
|
//array of member instances loaded from db
|
|
'data' => $model->findAll('id_empresa=:id_empresa', array(':id_empresa'=>$model->id_empresa)),
|
|
|
|
'removeHtmlOptions' => array(
|
|
'class' => 'button plain',
|
|
),
|
|
));
|
|
?>
|
|
|
|
|
|
<div class="marginleft150">
|
|
|
|
</div>
|
|
</div>
|