widget('ext.multimodelform.MultiModelForm',array(
'id' => 'id_funcional', //the uniques widget id
'addItemText' => '', // no quiero mostrar el enlace de añadir
'removeText' => 'Eliminar',
'removeConfirm' => '¿Desea eliminar esta capacidad funcional?',
'tableHtmlOptions' => array(
'class' => 'sTable2',
'width' => '99%',
),
'tableView' => true,
'formConfig' => $funcionalFormConfig, //the form configuration array
'model' => $funcional, //instance of the form model
//if submitted not empty from the controller,
//the form will be rendered with validation errors
'validatedItems' => $funcionalesValidas,
//array of member instances loaded from db
'data' => $funcional->findAll('capacidad_id=:capacidad_id', array(':capacidad_id'=>$model->id)),
'removeHtmlOptions' => array(
'class' => 'button plain',
),
));
?>