Your IP : 216.73.216.79


Current Path : /var/www/html/crm/views/product/
Upload File :
Current File : /var/www/html/crm/views/product/_search.php

<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use app\models\Brand;
use yii\helpers\ArrayHelper;

/* @var $this yii\web\View */
/* @var $model app\models\ParamCatSearch */
/* @var $form yii\widgets\ActiveForm */
$this->registerCss(".topsection-search label{margin-right:1em;}");
?>
<div class="topsection-search mt-4 mb-4">
    <?php $form = ActiveForm::begin(['action' => ['index'], 'method' => 'get', 'options' => ['class' => 'form-inline form-search']]); ?>
    <?= $form->field($model, 'searchstring')->textInput(); ?>
    <?= $form->field($model, 'searchcompany')->hiddenInput()->label(false); ?>
    <?=
    $form->field($model, 'searchbrand')->dropDownList(ArrayHelper::map(Brand::find()->orderBy(['name' => SORT_ASC])->all(), 'uuid', 'name'), [
        'prompt' => '- Choose brand -',
        'class' => 'form-control kt-selectpicker',
        'data-width' => '300px',
        'data-live-search' => 'false']);
    ?>      
    <div class="form-group">
        &nbsp;&nbsp;<?= Html::submitButton('Search', ['class' => 'btn btn-brand']) ?>
        &nbsp;&nbsp;<?= Html::a('Reset', ['index'], ['class' => 'btn btn-outline-brand']) ?>
        &nbsp;&nbsp;<?= Html::a('Add Product', ['create'], ['class' => 'btn btn-brand']) ?>
    </div>
    <?php ActiveForm::end(); ?>
</div>