I have a two panel accordion. Both panels render partial forms. The first panel’s form page works, but the second does not. If I reverse the order the new first form page works. So it is definitely the second page that is not working.
I have tried many combinations, but none work.
Here is my accordion widget:
<?php
$this->widget('zii.widgets.jui.CJuiAccordion',array(
'panels'=>array(
'Individual Contributor'=>$this->renderPartial('_partial_indiv_contrib',
array('job_profile'=>$job_profile),true),
'Leading Sales People'=>$this->renderPartial('_partial_leading_sales_people',
array('job_profile'=>$job_profile,),true),
),
// additional javascript options for the accordion plugin
'options'=>array(
'active'=>true,
'atuotHeight'=>false,
//'animated'=>'bounceslide',
'alwaysOpen'=>false,
'collapsible'=>true,
),
));
?>
Here is one of the form pages:
<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
'id'=>'job-opening-form',
'enableAjaxValidation'=>false,
)); ?>
<?php echo $form->checkBox($job_profile,'indiv_contr_or_leader', array('checkedValue'=>2, 'checked'=>'checked', 'uncheckValue'=>0)); ?>
<td>I am an individual contributor</td>
<br><br>
<b>My work involves</b> (Check All that Apply):
<table><tr><td> <?php echo $form->checkBox($job_profile,'bus_dev', array('A.) Business Development'=>1, 'uncheckValue'=>0)); ?>
<td>Actively pursuing creative solutions to identify gaps or problems of potential new clients, not selling from a book of products. Also M&A Deal & Capital Transactions.</td></table>
<table><tr><td> <?php echo $form->checkBox($job_profile,'inside_sales', array('A.) Business Development'=>1, 'uncheckValue'=>0)); ?>
<td>Activily meeting with clients to close deals in person on a regular basis.</td></table>
<table><tr><td> <?php echo $form->checkBox($job_profile,'outside_sales', array('A.) Business Development'=>1, 'uncheckValue'=>0)); ?>
<td>In an office, placing outbound calls, closing sales on a regular basis over the phone or Web-EX.</td></table>
<table><tr><td> <?php echo $form->checkBox($job_profile,'channels', array('A.) Business Development'=>1, 'uncheckValue'=>0)); ?>
<td>Selling to someone who will resell their products, not directly closing deals with the end user. Could be through a distribution channel.</td></table>
<table><tr><td> <?php echo $form->checkBox($job_profile,'acct_mgrs', array('A.) Business Development'=>1, 'uncheckValue'=>0)); ?>
<td>Over 50 percent of time is spent with existing customers to close deals.</td></table>
<?php $this->endWidget(); ?>
</div>