<?php
$form = $this->beginWidget('CActiveForm', array(
    'id' => 'dialog-form',
    'htmlOptions' => array(
        'role' => 'form',
    ),
));
echo $form->error($message, 'message', array('class' => 'error-message')); ?>

<div class="dialog-block">
    <?php echo $form->textArea($message, 'message', array('class' => 'form-control', 'placeholder' => 'Введите сообщение')); ?>
    <div class="dialog-block_buttons">
        <div class="pull-left">
            <?php echo CHtml::submitButton('Отправить', array('class' => 'btn-xs dialog-block_button')); ?>
        </div>
        <div class="pull-right">
            <?php echo CHtml::link('<img src="/images/icons/clothes.png" alt="*" />', array('/mail/list/', 'id'=>$id, 'type'=>'items'), array('class' => 'dialog-block_button text-center')); ?>
            <?php echo CHtml::link('<img src="/images/icons/iron_bottle.png" alt="*" />', array('/mail/list/', 'id'=>$id, 'type'=>'resources'), array('class' => 'dialog-block_button text-center')); ?>
            <?php echo CHtml::link('<img src="/images/icons/money_gold.png" alt="*" />', array('/mail/list/', 'id'=>$id, 'type'=>'money'), array('class' => 'dialog-block_button text-center')); ?>
        </div>
        <div class="clearfix"></div>
    </div>
    <hr>Стоимость: <img src="/images/icons/iron.png" alt="*" />1
</div>
<?php $this->endWidget(); ?>