<?php
$form = $this->beginWidget('CActiveForm', array(
    'id' => 'panel-form',
    'enableAjaxValidation'=>true,
    'htmlOptions'=>array(
      'role'=>'form',
    ),
));
?>
<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>
<?php echo CHtml::submitButton(Yii::t('layout', 'Заблокировать'), array('class' => 'btn-block form-control sendForm')); ?>
<?php $this->endWidget(); ?>