git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_IntranetNueva/trunk@39 77cfc57b-8ef4-1849-9df6-4a38aa5da120
62 lines
2.1 KiB
PHP
62 lines
2.1 KiB
PHP
<?php
|
|
Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl . '/js/plugins/jquery-ui-1.8.16.custom.min.js');
|
|
?>
|
|
|
|
<?php
|
|
$tecnologiaFormConfig = array(
|
|
'elements'=>array(
|
|
'tecnologia_id'=>array(
|
|
'type'=>'dropdownlist',
|
|
'layout'=>'{input}',
|
|
'class'=>'ff',
|
|
'items'=>array(0 => '-') + CHtml::listData(Tecnologia::model()->findAll(), 'id', 'descripcion'),
|
|
),
|
|
'meses_tecnologia'=>array(
|
|
'class'=>'sf',
|
|
),
|
|
),
|
|
);
|
|
?>
|
|
|
|
<label><?php echo Yii::t('intranet', 'Tecnologías'); ?></label>
|
|
|
|
<div class="marginleft150">
|
|
<?php $this->widget('ext.multimodelform.MultiModelForm',array(
|
|
'id' => 'id_tecnologia', //the unique widget id
|
|
'addItemText' => '', // no quiero mostrar el enlace de añadir
|
|
'removeText' => 'Eliminar',
|
|
'removeConfirm' => '¿Desea eliminar esta tecnología?',
|
|
'tableHtmlOptions' => array(
|
|
'class' => 'sTable2',
|
|
'width' => '99%',
|
|
),
|
|
'tableView' => true,
|
|
'formConfig' => $tecnologiaFormConfig, //the form configuration array
|
|
'model' => $tecnologia, //instance of the form model
|
|
|
|
//if submitted not empty from the controller,
|
|
//the form will be rendered with validation errors
|
|
'validatedItems' => $tecnologiasValidas,
|
|
|
|
//array of member instances loaded from db
|
|
'data' => $tecnologia->findAll('capacidad_id=:capacidad_id', array(':capacidad_id'=>$model->id)),
|
|
|
|
'removeHtmlOptions' => array(
|
|
'class' => 'button plain',
|
|
),
|
|
));
|
|
?>
|
|
<br clear="all" />
|
|
<div class="mmf_addlink">
|
|
<?php
|
|
echo CHtml::link('Añadir tecnología', '#', array(
|
|
'class' => 'button plain',
|
|
'rel' => '.id_tecnologia_copy',
|
|
'id' => 'id_tecnologia',
|
|
));
|
|
|
|
?>
|
|
</div>
|
|
<br clear="all" />
|
|
</div>
|