<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use common\models\User;
use common\components\Helper;
use frontend\components\HtmlHelper;
use backend\models\CardPackageSearch;

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

<?php 

$userOptions = ['' => 'Mind'] +  HtmlHelper::mkOptions( User::read() ,'id','username');
$statusOptions = ['' => 'Mind'] +  CardPackageSearch::getPrintStatuses();
?>

<div class="card-package-search">

    <?php $form = ActiveForm::begin([
        'action' => ['index'],
        'method' => 'get',
    ]); ?>

<div class="row">
	<div class="col-md-3">
    <?= $form->field($model, 'id_card_package') ?>
	</div>
	<div class="col-md-3">
    <?= $form->field($model, 'id_user')->dropDownList( $userOptions ) ?>
	</div>
	<div class="col-md-3">
    <?= $form->field($model, 'printStatus')->dropDownList($statusOptions)->label("Letöltve") ?>
	</div>
</div>




    <div class="form-group">
        <?= Html::submitButton(Yii::t('common/card_package', 'Keresés'), ['class' => 'btn btn-primary']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
