<?php
$this->pageTitle = 'Редактирование темы';
$form = $this->beginWidget('CActiveForm', array(
    'id' => 'forum-form',
    'enableAjaxValidation' => true,
    'htmlOptions' => array(
        'role' => 'form',
    ),
));
?>
<div class="form-group">
    <?php echo $form->label($model, 'title', array('class' => 'col-sm-3 control-label')); ?>
    <?php echo $form->textField($model, 'title', array('class' => 'form-control')); ?>
    <?php echo $form->error($model, 'title'); ?>
</div>
<div class="form-group">
    <?php echo $form->label($model, 'message', array('class' => 'col-sm-3 control-label')); ?>
    <?php echo $form->textArea($model, 'message', array('class' => 'form-control')); ?>
    <?php echo $form->error($model, 'message'); ?>
</div>
<div class="form-group">
    <?php echo $form->label($model, 'vip', array('class' => 'col-sm-3 control-label')); ?>
    <?php echo $form->textField($model, 'vip', array('class' => 'form-control')); ?>
    <?php echo $form->error($model, 'vip'); ?>
</div>
<div class="form-group">
    <?php echo $form->label($model, 'close', array('class' => 'col-sm-3 control-label')); ?>
    <?php echo $form->checkBox($model, 'close'); ?>
</div>
<div class="form-group">
    <?php echo $form->label($model, 'is_delete', array('class' => 'col-sm-3 control-label')); ?>
    <?php echo $form->checkBox($model, 'is_delete'); ?>
</div>
<?php echo CHtml::submitButton(Yii::t('layout', 'Сохранить'), array('class' => 'btn-block form-control')); ?>
<?php $this->endWidget(); ?>