<?php
    $this->pageTitle = 'Тех. поддержка';
    $this->pageInfo = 'Ответ на запрос';
?>
<?php
$form = $this->beginWidget('CActiveForm', array(
    'id' => 'support-form',
    'enableAjaxValidation' => false,
    'htmlOptions' => array('class' => 'form-horizontal'),
));
?>
<?php echo $form->hiddenField($model, 'id_message', array('class' => 'form-control')); ?>
<div class="form-group">
    <?php echo $form->label($model, 'id_user', array('class' => 'col-sm-4 control-label')); ?>
    <div class="col-sm-6">	
        <?php echo Users::getLoginWithLink($model->id_user); ?>
    </div>
</div>
<div class="form-group">
    <?php echo $form->label($model, 'message', array('class' => 'col-sm-4 control-label')); ?>
    <div class="col-sm-6">	
        <?php echo $model->message; ?>
    </div>
</div>
<div class="form-group">
    <?php echo $form->labelEx($model, 'answer', array('class' => 'col-sm-4 control-label')); ?>
    <div class="col-sm-6">	
		<?php echo FuncHelper::textAreaTagsForAdmin(Yii::app()->user->roleCat);?>
        <?php echo $form->textArea($model, 'answer', array('class' => 'form-control message')); ?>
        <?php echo $form->error($model, 'answer'); ?>
    </div>
</div>

<div class="form-group">
    <div class="col-sm-offset-4 col-sm-6">
        <?php echo CHtml::submitButton(Yii::t('layout', 'Ответить'), array('class' => 'btn btn-info')); ?>
    </div>
</div>
<?php $this->endWidget(); ?>