<?php
$this->pageTitle = 'Создание темы';
$form = $this->beginWidget('CActiveForm', array(
    'id' => 'forum-form',
    'htmlOptions' => array(
        'role' => 'form',
    ),
        ));
?>
<div class="form-group">
    <?php echo $form->labelEx($model, 'title', array('class' => '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->labelEx($model, 'message', array('class' => 'control-label')); ?>
    <?php if (FuncHelper::textAreaTagsForAdmin(Yii::app()->user->roleCat)): ?>
    <br />
    <?php echo FuncHelper::textAreaTagsForAdmin(Yii::app()->user->roleCat); ?>
    <?php endif; ?>
    <?php echo $form->textArea($model, 'message', array('class' => 'form-control')); ?>
    <?php echo $form->error($model, 'message'); ?>
</div>
<?php
echo CHtml::submitButton(($model->isNewRecord ? Yii::t('layout', 'Создать') : Yii::t('layout', 'Сохранить')), array('class' => 'btn-block form-control'));
$this->endWidget();
?>