Your IP : 216.73.216.79


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

<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use app\models\AssetCategory;

$AssetCategory = new AssetCategory();

$this->registerCss(".form-search .form-control{margin:0;}");
?>

<div class="asset-details-search mt-4 mb-4">
    <?php $form = ActiveForm::begin(['action' => ['index'], 'method' => 'get', 'options' => ['class' => 'form-inline form-search']]); ?>
    <?= $form->field($model, 'name')->textInput(['class'=>'form-control ml-3 mr-3']); ?>
    <?=
    $form->field($model, 'cat')->dropDownList($AssetCategory->getcategorylist('arr1', $level = 0, $parent = 0, $arr = [], $parentno = '', $parent_string = ''), [
        'prompt' => '-- Please choose --',
        'data-live-search' => 'true',
        'class' => 'form-control kt-selectpicker mr-3',
        'data-width' => '400px',
        'options' => $AssetCategory->getcategorylist('arr2', $level = 0, $parent = 0, $arr = [], $parentno = '', $parent_string = '')])->label(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 ' . $this->title, ['create'], ['class' => 'btn btn-brand']) ?>
    </div>
    <?php ActiveForm::end(); ?>
</div>