<hr>
<?php
$form = $this->beginWidget('CActiveForm', array(
    'id' => 'panel-form',
    'enableAjaxValidation' => true,
    'htmlOptions' => array(
        'role' => 'form',
    ),
));
?>
<div class="form-group">
    <div class="col-sm-12">
        Отредактировать сообщение:<br />
        <?php echo $form->textArea($model, 'message', array('class' => 'form-control', 'placeholder' => $model->getAttributeLabel('message'))); ?>
        <?php echo $form->error($model, 'message'); ?>
    </div>
</div>
<div class="form-group">
    <div class="col-sm-12">
        Оветить на сообщение:<br />
        <?php echo $form->textField($model, 'answer', array('class' => 'form-control', 'placeholder' => $model->getAttributeLabel('answer'))); ?>
        <?php echo $form->error($model, 'answer'); ?>
    </div>
</div>
<div class="form-group">
    <div class="col-sm-12">
        Выдать молчание: (в часах)<br />
    </div>
    <div class="col-sm-4">
        <?php echo $form->textField($model, 'mute', array('class' => 'form-control', 'placeholder' => $model->getAttributeLabel('mute'))); ?>
        <?php echo $form->error($model, 'mute'); ?>
    </div>
    <div class="col-sm-8">
        <?php echo $form->textField($model, 'reason', array('class' => 'form-control', 'placeholder' => $model->getAttributeLabel('reason'))); ?>
        <?php echo $form->error($model, 'reason'); ?>
    </div>
</div>
<div class="form-group">
    <div class="col-sm-12">
        <?php echo CHtml::submitButton(Yii::t('layout', 'Сохранить'), array('class' => 'btn-block form-control sendForm')); ?>
    </div>
</div>
<div class="clearfix"></div>
<?php $this->endWidget(); ?>