我正在使用Yiistrap。我想修改模型的内容。我想添加一些标签,文本框,下拉列表(2个或更多字段)。我已经给出了以下代码&提到了我想要修改的区域。
<?php $this->widget('bootstrap.widgets.TbModal', array(
'id' => 'myModal',
'header' => 'Modal Heading',
'content' => '<p>I Wnat to Modify this region</p>', /* Here I don't want only plain text i.e. <p> tag. I want to Add label as well as textbox, dropdown. please help me */
'footer' => implode(' ', array(
TbHtml::button('Save Changes', array(
'data-dismiss' => 'modal',
'color' => TbHtml::BUTTON_COLOR_PRIMARY)
),
TbHtml::button('Close', array('data-dismiss' => 'modal')),
)), )); ?>
<?php echo TbHtml::button('Click me to open modal', array(
'style' => TbHtml::BUTTON_COLOR_PRIMARY,
'size' => TbHtml::BUTTON_SIZE_LARGE,
'data-toggle' => 'modal',
'data-target' => '#myModal', )); ?>