<?php
/* @var $this AuctionController */
/* @var $model Auction */

$this->pageTitle = 'Аукцион ресурсов';
?>

<?php
$form = $this->beginWidget('CActiveForm', array(
    'id' => 'auction-form',
    'htmlOptions'=>array(
      'role'=>'form',
    ),
));
?>
<?php echo $form->error($model, 'trade', array('class' => 'info error')); ?>
<?php echo $form->error($model, 'number', array('class' => 'info error')); ?>
<?php echo $form->error($model, 'price_out', array('class' => 'info error')); ?>
<?php echo $form->error($model, 'min_price_gold', array('class' => 'info error')); ?>
<?php echo $form->error($model, 'min_price_silver', array('class' => 'info error')); ?>
<div class="form-group mb_0">
    <?php echo $form->labelEx($model, 'trade'); ?>
</div>
<div class="form-group">
    <?php echo $form->dropDownList($model, 'trade', FuncHelper::auctionTrade(), array('class' => 'form-control')); ?>
</div>
<div class="form-group mb_0">
    <?php echo $form->labelEx($model, 'number'); ?>
</div>
<div class="form-group">
    <?php echo $form->textField($model, 'number', array('class' => 'form-control')); ?>
</div>
<div class="form-group mb_0">
    <?php echo $form->labelEx($model, 'price_out'); ?>
</div>
<div class="form-group">
    <div class="col-xs-6">
        <div class="row">
            <img src="/images/icons/money_gold.png">
            <?php echo $form->textField($model, 'min_price_gold', array('class' => 'form-control with_image', 'placeholder' => 'Золото')); ?>
        </div>
    </div>
    <div class="col-xs-6">
        <div class="row">
            <img src="/images/icons/money_silver.png">
            <?php echo $form->textField($model, 'min_price_silver', array('class' => 'form-control with_image', 'placeholder' => 'Серебро')); ?>
        </div>
    </div>
</div>
<div class="clearfix"></div>
<hr />
<?php echo CHtml::submitButton(Yii::t('layout', 'Выставить'), array('class' => 'btn-block form-control')); ?>
<?php $this->endWidget(); ?>