diff --git a/views/order/_form.php b/views/order/_form.php index ae188c3..91f951d 100755 --- a/views/order/_form.php +++ b/views/order/_form.php @@ -359,11 +359,15 @@ JS; 'header' => \Yii::t('app', 'Бронь'), 'inputType' => kartik\editable\Editable::INPUT_TEXT, 'options' => [ + 'class' => 'booking-typeahead', 'pluginOptions' => [ 'min' => 0, 'max' => 20, ], ], + 'pluginEvents' => [ + 'editableSuccess' => 'function(event) { $.pjax.reload({container:"#order-products-grid"}); }', + ], ], 'format' => [ 'text', @@ -375,17 +379,17 @@ JS; 'attribute' => 'status', 'editableOptions' => [ 'header' => \Yii::t('app', 'Статус'), - 'inputType' => kartik\editable\Editable::INPUT_SELECT2, + 'inputType' => kartik\editable\Editable::INPUT_TEXT, 'options' => [ - 'data' => [ - 0 => 'adsas', - 2 => 'dSSSSasda', - ], + 'class' => 'status-typeahead', 'pluginOptions' => [ 'min' => 0, 'max' => 20, ], ], + 'pluginEvents' => [ + 'editableSuccess' => 'function(event) { $.pjax.reload({container:"#order-products-grid"}); }', + ], ], 'format' => [ 'text', -- libgit2 0.21.4