<?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>