title: How to create a confirm dialog box before submit in Yii framework
body: <p>I'm new to Yii framework, I need to create a confirm dialog to pop up before I submit a form. Below is the code of the form used to approve and reject. I need a pop up to appear before I submit to confirm whether approved or rejected.</p>
  
  <pre><code>&lt;div class="row"&gt;
          &lt;?php echo $form-&gt;labelEx($model,'Approved'); ?&gt;
  &lt;?php
   echo $form-&gt;radioButtonList($model, 'Approved',
                      array(  1 =&gt; 'Approved',
                              0 =&gt; 'Rejected',
   ),
  
                     array(
      'labelOptions'=&gt;array('style'=&gt;'display:inline'), // add this code
      'separator'=&gt;'  ',
  ) );
  
  
  ?&gt;
  
  
          &lt;?php echo $form-&gt;error($model,'Approved'); ?&gt;
      &lt;/div&gt;  
  </code></pre>
  
  <p><strong>Edit</strong>  </p>
  
  <pre><code>&lt;div class="row buttons"&gt;
          &lt;?php echo CHtml::submitButton($model-&gt;isNewRecord ? 'Create' : 'Save'); ?&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>How can I achieve this</p>