<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model common\models\Prizes */
/* @var $form yii\widgets\ActiveForm */
?>

<section class="content">
    <div class="row">
        <!-- left column -->
        <div class="col-md-12">
            <!-- general form elements -->
            <div class="box box-primary">
                
                <!-- /.box-header -->
                <div class="box-body pad">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'quantity')->textInput(['maxlength' => true]) ?>
    <?= $form->field($model, 'current_qty')->textInput(['maxlength' => true]) ?>
    
<?php echo $form->field($model, 'draw_status')->dropDownList(
        ['0'=>'Completed','1'=>'active'],
        ['prompt'=>'Select...']
        );?>

    <div class="form-group">
        <?= Html::submitButton('Save', ['class' => 'btn btn-success']) ?>
    </div>

    <?php ActiveForm::end(); ?>
    </div>
            </div>
        </div>
    </div>
</section>

