Hi Yii community,
I’ve a problem while integrating different forms in a page.From a parent Webpage I would like to create links that open the forms. I can integrate 13 Modals but when I put the number 14 the last form is rendered in the parent page and if I press the link the modal is not triggered. If I put the piece of the 14º modal on top this is working and the new 14 is not working.
I’m using the following modal declaration
<?php
$this->beginWidget ( 'zii.widgets.jui.CJuiDialog', array (
'id' => 'modal_holter',
'options' => array (
'title' => 'Holter form',
'autoOpen' => false,
'modal' => true,
// 'height'=>400,
'width' => '50%',
'resizable' => false,
'overlay' => array (
'backgroundcolor' => '#000',
'opacity' => '0.5'
)
)
) );
echo $this->renderPartial('//holter/_form',array('model'=>$holter));
$this->endWidget ( 'zii.widgets.jui.CJuiDialog' );
?>
The link is rendered as follow:
<?php echo CHtml::link('Report an Holter','',array('onclick'=>'$("#modal_holter").dialog("open");return false;'));?>
Do you have any idea?
Thank you very much!!
m