| Current Path : /var/www/html/crm/views/product/ |
| 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">
<?= Html::submitButton('Search', ['class' => 'btn btn-brand']) ?>
<?= Html::a('Reset', ['index'], ['class' => 'btn btn-outline-brand']) ?>
<?= Html::a('Add Product', ['create'], ['class' => 'btn btn-brand']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>