<?php
    $this->pageTitle = 'Управление ботами';
    $this->pageInfo = 'Локация: '.$battle->name_location;
?>
<?php
$form = $this->beginWidget('CActiveForm', array(
    'id' => 'battles-form',
    'enableAjaxValidation' => false,
    'htmlOptions' => array('class' => 'form-horizontal'),
));
?>
<?php echo $form->hiddenField($model, 'id_location', array('class' => 'form-control')); ?>
<div class="form-group">
    <?php echo $form->labelEx($model, 'bots_level', array('class' => 'col-sm-2 control-label')); ?>
    <div class="col-sm-6">	
        <?php echo $form->textField($model, 'bots_level', array('class' => 'form-control')); ?>
        <?php echo $form->error($model, 'bots_level'); ?>
    </div>
</div>
<div class="form-group">
    <?php echo $form->labelEx($model, 'bots_count1', array('class' => 'col-sm-2 control-label')); ?>
    <div class="col-sm-6">	
        <?php echo $form->textField($model, 'bots_count1', array('class' => 'form-control')); ?>
        <?php echo $form->error($model, 'bots_count1'); ?>
    </div>
</div>
<div class="form-group">
    <?php echo $form->labelEx($model, 'bots_count2', array('class' => 'col-sm-2 control-label')); ?>
    <div class="col-sm-6">	
        <?php echo $form->textField($model, 'bots_count2', array('class' => 'form-control')); ?>
        <?php echo $form->error($model, 'bots_count2'); ?>
    </div>
</div>
<div class="form-group">
    <?php echo $form->labelEx($model, 'id_set', array('class' => 'col-sm-2 control-label')); ?>
    <div class="col-sm-6">	
        <?php echo $form->dropDownList($model, 'id_set', CHtml::listData(ShopSets::model()->findAll(), 'id_set', 'name'), array('class' => 'form-control', 'empty'=>'Выберите сет')); ?>
        <?php echo $form->error($model, 'id_set'); ?>
    </div>
</div>
<div class="form-group">
    <?php echo $form->labelEx($model, 'quality', array('class' => 'col-sm-2 control-label')); ?>
    <div class="col-sm-6">	
        <?php echo $form->dropDownList($model, 'quality', FuncHelper::auctionFilters('qualities'), array('class' => 'form-control')); ?>
        <?php echo $form->error($model, 'quality'); ?>
    </div>
</div>
<div class="form-group">
    <div class="col-sm-offset-2 col-sm-6">
        <?php echo CHtml::submitButton(Yii::t('admin_layout', 'Сохранить'), array('class' => 'btn btn-info')); ?>
    </div>
</div>
<?php $this->endWidget(); ?>