<div class="modal-dialog">
    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'form',
        'enableAjaxValidation' => true,
        'htmlOptions' => array(
            'class' => 'form-horizontal',
        ),
    ));
    ?>
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal">
                <span aria-hidden="true">&times;</span><span class="sr-only">Закрыть</span>
            </button>
            <h4 class="modal-title">Управление аватаром</h4>
        </div>
        <div class="modal-body">
            <div class="form-group">
                <div class="col-sm-12">
                    <?php echo $form->textField($model, 'price', array('class' => 'form-control', 'placeholder' => $model->getAttributeLabel('price'))); ?>
                    <?php echo $form->error($model, 'price'); ?>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-12">
                    <?php echo CHtml::activeFileField($model, 'image'); ?>
                    <?php echo $form->error($model, 'image'); ?>
                </div>
            </div>
        </div>
        <div class="modal-footer">
            <?php echo CHtml::submitButton(Yii::t('layout', 'Сохранить'), array('class' => 'btn-block form-control sendModalForm')); ?>
        </div>
    </div>
    <?php $this->endWidget(); ?>
</div>