<?php
 $form = $this->beginWidget('ext.bootstrap.widgets.TbActiveForm', array(
             'id' => 'badge-type-form',
             'enableAjaxValidation' => false,
             'action' => array("/badge/addAndAssign", 'badge_number' => $badge_number, 'person_id' => $person_id, 'add' => true),
         ));

// Start Pop Up Widget For Select Badge Type
 $this->beginWidget('ext.bootstrap.widgets.TbModal', array(
     'id' => 'selectBadgeType_modal',
     'htmlOptions' => array('class' => 'hide'),
 ));
?>

<div class="modal-header">
     <a class="close" data-dismiss="modal">&times;</a>
     <h3><?php echo Yii::t('default', 'Badge Type'); ?></h3>
</div>

<div class="modal-body" style="text-align: center">
     <div id="msg">
         <br>
     </div>
    <?php
     echo cHtml::dropDownList('badge_type', array(), CHtml::listData(BadgeType::getAll('Active'), 'id', 'name'), array('empty' => Yii::t('default', 'Select Badge Type')));
    ?>

     <br>
</div>

<div class="modal-footer">
<?php echo CHtml::submitButton(Yii::t('default', 'Add'), array('class' => 'btn')); ?>
    <?php echo CHtml::link(Yii::t('default', 'Cancel'), '#', array('class' => 'btn', 'data-dismiss' => 'modal')); ?>
</div>

<?php $this->endWidget(); ?>  <!-- End Pop Up Widget For Privileges page -->

<?php $this->endWidget(); ?> <!-- End the form widget -->