diff --git a/views/ticket/_search.php b/views/ticket/_search.php index c965186..4fde7ce 100644 --- a/views/ticket/_search.php +++ b/views/ticket/_search.php @@ -56,7 +56,7 @@ ]); ?> field($model, 'state')->widget(StaticCombo::classname(), [ - 'data' => array_merge(['' => ''], $state_data), + 'data' => $state_data, ]); ?> @@ -64,11 +64,21 @@ field($model, 'author_id')->widget(ClientCombo::classname()); ?> field($model, 'responsible_id')->widget(ClientCombo::classname(), [ - 'clientType' => 'manager' + 'clientType' => 'manager', +// 'pluginOptions' => [ +// 'select2Options' => [ +// 'multiple' => true, +// ], +// ], ]); ?> field($model, 'topics')->widget(StaticCombo::classname(), [ - 'data' => array_merge(['' => ''], $topic_data), + 'data' => $topic_data, + 'pluginOptions' => [ + 'select2Options' => [ + 'multiple' => true, + ] + ], ]); ?> @@ -78,18 +88,18 @@ ]); ?> field($model, 'priority')->widget(StaticCombo::classname(), [ - 'data' => array_merge(['' => ''], $priority_data), + 'data' => $priority_data, ]);?> - field($model, 'watchers')->widget(ClientCombo::classname()); ?> + field($model, 'watchers')->widget(ClientCombo::classname(), [ +// 'pluginOptions' => [ +// 'select2Options' => [ +// 'multiple' => true, +// ], +// ], + ]); ?> - - field($model, 'message') ?> - - field($model, 'answer_message') ?> - -
'btn btn-primary']) ?>
diff --git a/views/ticket/index.php b/views/ticket/index.php index 66a772c..1af6f53 100644 --- a/views/ticket/index.php +++ b/views/ticket/index.php @@ -221,14 +221,18 @@ [ 'attribute' => 'responsible_id', 'format' => 'html', - 'filterInputOptions' => ['id' => 'responsible_id'], +// 'filterInputOptions' => ['id' => 'responsible_id'], 'value' => function ($data) { return Html::a($data['responsible'], ['/client/client/view', 'id' => $data->responsible_id]); }, - 'filter' => Select2::widget([ + 'filter' => \hipanel\modules\client\widgets\combo\ClientCombo::widget([ 'attribute' => 'responsible_id', 'model' => $searchModel, - 'url' => Url::to(['/client/client/client-all-list']) + 'formElementSelector' => 'td', + 'inputOptions' => [ + 'id' => 'responsible_id', + ] +// 'url' => Url::to(['/client/client/client-all-list']) ]), ], [