<?php
$form = $this->beginWidget('CActiveForm', array(
    'id' => 'dialog-form',
    'htmlOptions' => array(
        'role' => 'form',
    ),
        ));
echo $form->error($message, 'money', array('class' => 'error-message'));
?>
<div class="dialog-block">
    <div class="form-group">
        <div class="col-xs-6">
            <div class="input-group">
                <span class="input-group-addon"><img src="/images/icons/money_gold.png"></span>
                <?php echo $form->textField($message, 'gold', array('class' => 'form-control', 'placeholder' => 'Золото')); ?>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="input-group">
                <span class="input-group-addon"><img src="/images/icons/money_silver.png"></span>
                <?php echo $form->textField($message, 'silver', array('class' => 'form-control', 'placeholder' => 'Серебро')); ?>
            </div>
        </div>
        <div class="clearfix"></div>
    </div>
    <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('Т', array('/mail/list/', 'id' => $id), array('class' => 'dialog-block_button text-center')); ?>
        </div>
        <div class="clearfix"></div>
    </div>
    <hr>Стоимость: 5% от суммы, но не менее <img src="/images/icons/money_silver.png">05
</div>
<?php $this->endWidget(); ?>