From b6982e01fab6eb7aa4fc11fb03b6ac766c225c4b Mon Sep 17 00:00:00 2001 From: Andrey Klochok Date: Wed, 20 May 2015 18:44:15 +0300 Subject: [PATCH] ... --- views/ticket/_advanced_form.php | 7 ++++++- views/ticket/_form.php | 2 +- views/ticket/_search.php | 4 +++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/views/ticket/_advanced_form.php b/views/ticket/_advanced_form.php index fc342c6..bceef6e 100644 --- a/views/ticket/_advanced_form.php +++ b/views/ticket/_advanced_form.php @@ -16,6 +16,7 @@ else $model->topics = implode(',', array_keys($model->topics)); print $form->field($model, 'topics')->widget(StaticCombo::className(), [ + 'hasId' => true, 'pluginOptions' => [ 'select2Options' => [ 'multiple' => true, @@ -31,6 +32,7 @@ $model->state = 'opened'; print $form->field($model, 'state')->widget(StaticCombo::classname(), [ 'data' => $state_data, + 'hasId' => true ]); ?>
@@ -40,13 +42,14 @@ $model->priority = 'medium'; print $form->field($model, 'priority')->widget(StaticCombo::classname(), [ 'data' => $priority_data, + 'hasId' => true ]); ?>
field($model, 'responsible_id')->widget(ClientCombo::classname(), [ - 'clientType' => 'manager' +// 'clientType' => 'manager' ]); ?> scenario == 'insert') : ?> @@ -59,8 +62,10 @@ ], ]); ?> + watchers)), 10, true); ?> field($model, 'watchers')->widget(ClientCombo::classname(), [ // 'clientType' => 'manager', + 'hasId' => true, 'inputOptions' => [ 'value' => implode(',', array_keys($model->watchers)), ], diff --git a/views/ticket/_form.php b/views/ticket/_form.php index 04a06b7..4790d81 100644 --- a/views/ticket/_form.php +++ b/views/ticket/_form.php @@ -82,7 +82,7 @@ field($model, 'file[]')->widget(\kartik\widgets\FileInput::className(), [ 'options' => [ - 'accept' => 'image/*', +// 'accept' => 'image/*', 'multiple' => true ], 'pluginOptions' => [ diff --git a/views/ticket/_search.php b/views/ticket/_search.php index 4fde7ce..70b7028 100644 --- a/views/ticket/_search.php +++ b/views/ticket/_search.php @@ -57,6 +57,7 @@ field($model, 'state')->widget(StaticCombo::classname(), [ 'data' => $state_data, + 'hasId' => true, ]); ?> @@ -64,7 +65,7 @@ field($model, 'author_id')->widget(ClientCombo::classname()); ?> field($model, 'responsible_id')->widget(ClientCombo::classname(), [ - 'clientType' => 'manager', +// 'clientType' => 'manager', // 'pluginOptions' => [ // 'select2Options' => [ // 'multiple' => true, @@ -74,6 +75,7 @@ field($model, 'topics')->widget(StaticCombo::classname(), [ 'data' => $topic_data, + 'hasId' => true, 'pluginOptions' => [ 'select2Options' => [ 'multiple' => true,