<div class="modal-dialog">
    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'panel-form',
        'enableAjaxValidation'=>true,
        'htmlOptions'=>array(
          'class'=>'form-horizontal',
        ),
    ));
    ?>

    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal">
                <span aria-hidden="true">&times;</span><span class="sr-only">Закрыть</span>
            </button>
            <h4 class="modal-title">Заблокировать пользователя</h4>
        </div>
        <div class="modal-body">
            <div class="form-group">
                <div class="col-sm-12">
                <?php echo $form->dropDownList($model, 'type', array('пожизненно', 'часы', 'дни'), array('class' => 'form-control')); ?>
                <?php echo $form->error($model, 'type'); ?>
            </div>
            </div>
            <div class="form-group">
                <div class="col-sm-12">
                    <?php echo $form->textField($model, 'number', array('class' => 'form-control', 'placeholder'=>$model->getAttributeLabel('number'))); ?>
                    <?php echo $form->error($model, 'number'); ?>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-12">
                    <?php echo $form->textField($model, 'reason', array('class' => 'form-control', 'placeholder'=>$model->getAttributeLabel('reason'))); ?>
                    <?php echo $form->error($model, 'reason'); ?>
            </div>
        </div>
        <div class="modal-footer">
            <?php echo CHtml::submitButton(Yii::t('layout', 'Заблокировать'), array('class' => 'btn-block form-control sendModalForm')); ?>
        </div>
    </div>
    <?php $this->endWidget(); ?>
</div>