24 lines
1014 B
PHP
24 lines
1014 B
PHP
|
|
<div class="row-fluid formSep">
|
||
|
|
<div class="span12">
|
||
|
|
<label class="control-label"><?php echo Yii::t('profind', 'Titulaciones'); ?></label>
|
||
|
|
<div class="controls">
|
||
|
|
<?php
|
||
|
|
$lista = CHtml::listData(Titulacion::model()->findAll(), 'descripcion', 'descripcion');
|
||
|
|
$seleccion = ($candidato->titulaciones) ? CHtml::listData($candidato->titulaciones, 'titulacion', 'titulacion') : '';
|
||
|
|
|
||
|
|
$this->widget('ext.yii-chosen.Chosen', array(
|
||
|
|
'name' => 'CandidatoTitulacion[]',
|
||
|
|
'value' => $seleccion,
|
||
|
|
'data' => $lista,
|
||
|
|
'placeholderSingle' => Yii::t('profind', 'Seleccione las titulaciones'),
|
||
|
|
'htmlOptions' => array(
|
||
|
|
'multiple' => true,
|
||
|
|
'empty' => '',
|
||
|
|
'class' => 'span12'
|
||
|
|
)
|
||
|
|
));
|
||
|
|
?>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|