RenderPartial Issues

Hello everyone,

I am trying to renderPartial another form into the page dynamically, but I need the submit button to submit the whole form completely without having to render a new submit button for each form for example I am rendering this template editor


$form = $this->beginWidget('CActiveForm');

?>


<div id="tabSeq">

                            <div class="form-group col-lg-6">

                                <?php echo $form->labelEx($campaign, 'name');?>

<?php echo $form->textField($campaign, 'name', $campaign->getHtmlOptions('name')); ?>

<?php echo $form->error($campaign, 'name');?>

</div>


<div class="clearfix"></div>

<div class="form-group col-lg-3" style="display: none;">

    <?php echo $form->labelEx($template, 'inline_css');?>

    <?php echo $form->dropDownList($template, 'inline_css', $template->getYesNoOptions(), $template->getHtmlOptions('inline_css')); ?>

    <?php echo $form->error($template, 'inline_css');?>

</div>

<div class="form-group col-lg-3" style="display: none;">

    <?php echo $form->labelEx($template, 'minify');?>

    <?php echo $form->dropDownList($template, 'minify', $template->getYesNoOptions(), $template->getHtmlOptions('minify')); ?>

    <?php echo $form->error($template, 'minify');?>

</div>


<div class="form-group" id="oldEditor" style="display:none;">


    <div class="clearfix"><!-- --></div>

    <?php echo $form->textArea($template, 'content', $template->getHtmlOptions('content', array('rows' => 30))); ?>

    <?php echo $form->error($template, 'content');?>

</div>




</div>

<?php

$this->endWidget();

into a file that is similar


  $hooks->doAction('before_active_form', $collection = new CAttributeCollection(array(

        'controller'    => $this,

        'renderForm'    => true,

    )));


    // and render if allowed

    if ($collection->renderForm) {

        $form = $this->beginWidget('CActiveForm');

        ?>

        <div class="box box-primary">

            <div class="box-header">

                <h3 class="box-title"> <span class="glyphicon glyphicon-text-width"></span> <?php echo $pageHeading;?> </h3>

            </div>

            <div class="box-body">


                <div class="tabs-left" id="tabSequence">

                    <ul class="nav nav-tabs">

                        <li class="active"><a href="#tab1" data-toggle="tab">Campaign subject here</a></li>

                    </ul>

                    <div style="padding: 20px;">

                        <button class="btn btn-primary" id='add-tab'><i class="glyphicon glyphicon-plus"></i>Add Email </button>

                    </div>

                </div>




                <?php

                $hooks->doAction('before_active_form_fields', new CAttributeCollection(array(

                    'controller'    => $this,

                    'form'          => $form

                )));

                ?>


                    <div class="tab-content" id="tabContent">

                        <div class="tab-pane active" id="tab1">

                            <div id="tabSeq">


                            <div class="form-group col-lg-6">

                                <?php echo $form->labelEx($campaign, 'name');?>

                                <?php echo $form->textField($campaign, 'name', $campaign->getHtmlOptions('name')); ?>

                                <?php echo $form->error($campaign, 'name');?>

                            </div>


                <div class="clearfix"></div>

                <div class="form-group col-lg-3" style="display: none;">

                    <?php echo $form->labelEx($template, 'inline_css');?>

                    <?php echo $form->dropDownList($template, 'inline_css', $template->getYesNoOptions(), $template->getHtmlOptions('inline_css')); ?>

                    <?php echo $form->error($template, 'inline_css');?>

                </div>

                <div class="form-group col-lg-3" style="display: none;">

                    <?php echo $form->labelEx($template, 'minify');?>

                    <?php echo $form->dropDownList($template, 'minify', $template->getYesNoOptions(), $template->getHtmlOptions('minify')); ?>

                    <?php echo $form->error($template, 'minify');?>

                </div>

            

 

                                <div class="form-group" id="oldEditor" style="display:none;">


                                    <?php echo $form->textArea($template, 'content', $template->getHtmlOptions('content', array('rows' => 30))); ?>

                                    <?php echo $form->error($template, 'content');?>

                </div>


            </div> <!--Tab A end -->

                        </div> <!--templateSequence end-->


                        </div>  <!--tab content end-->


                <?php

                $hooks->doAction('after_active_form_fields', new CAttributeCollection(array(

                    'controller'    => $this,

                    'form'          => $form

                )));

                ?>

            <div class="box-footer">

                <div class="pull-right">

                    <button type="submit" class="btn btn-primary btn-submit" data-loading-text="<?php echo Yii::t('app', 'Please wait, processing...');?>"><?php echo Yii::t('app', 'Save changes');?></button>

                </div>

                <div class="clearfix"><!-- --></div>

            </div>

        </div>

        <?php

        $this->endWidget();

    }

is there anyway to load another file without the submit button and being able to submit it on the page it was loaded into?