Commit 53c12653ea56d9745d8d323421b1d1fee8e55458
1 parent
6041d68e
-Stattus and booking hints
Showing
1 changed file
with
9 additions
and
5 deletions
Show diff stats
views/order/_form.php
| @@ -359,11 +359,15 @@ JS; | @@ -359,11 +359,15 @@ JS; | ||
| 359 | 'header' => \Yii::t('app', 'Бронь'), | 359 | 'header' => \Yii::t('app', 'Бронь'), |
| 360 | 'inputType' => kartik\editable\Editable::INPUT_TEXT, | 360 | 'inputType' => kartik\editable\Editable::INPUT_TEXT, |
| 361 | 'options' => [ | 361 | 'options' => [ |
| 362 | + 'class' => 'booking-typeahead', | ||
| 362 | 'pluginOptions' => [ | 363 | 'pluginOptions' => [ |
| 363 | 'min' => 0, | 364 | 'min' => 0, |
| 364 | 'max' => 20, | 365 | 'max' => 20, |
| 365 | ], | 366 | ], |
| 366 | ], | 367 | ], |
| 368 | + 'pluginEvents' => [ | ||
| 369 | + 'editableSuccess' => 'function(event) { $.pjax.reload({container:"#order-products-grid"}); }', | ||
| 370 | + ], | ||
| 367 | ], | 371 | ], |
| 368 | 'format' => [ | 372 | 'format' => [ |
| 369 | 'text', | 373 | 'text', |
| @@ -375,17 +379,17 @@ JS; | @@ -375,17 +379,17 @@ JS; | ||
| 375 | 'attribute' => 'status', | 379 | 'attribute' => 'status', |
| 376 | 'editableOptions' => [ | 380 | 'editableOptions' => [ |
| 377 | 'header' => \Yii::t('app', 'Статус'), | 381 | 'header' => \Yii::t('app', 'Статус'), |
| 378 | - 'inputType' => kartik\editable\Editable::INPUT_SELECT2, | 382 | + 'inputType' => kartik\editable\Editable::INPUT_TEXT, |
| 379 | 'options' => [ | 383 | 'options' => [ |
| 380 | - 'data' => [ | ||
| 381 | - 0 => 'adsas', | ||
| 382 | - 2 => 'dSSSSasda', | ||
| 383 | - ], | 384 | + 'class' => 'status-typeahead', |
| 384 | 'pluginOptions' => [ | 385 | 'pluginOptions' => [ |
| 385 | 'min' => 0, | 386 | 'min' => 0, |
| 386 | 'max' => 20, | 387 | 'max' => 20, |
| 387 | ], | 388 | ], |
| 388 | ], | 389 | ], |
| 390 | + 'pluginEvents' => [ | ||
| 391 | + 'editableSuccess' => 'function(event) { $.pjax.reload({container:"#order-products-grid"}); }', | ||
| 392 | + ], | ||
| 389 | ], | 393 | ], |
| 390 | 'format' => [ | 394 | 'format' => [ |
| 391 | 'text', | 395 | 'text', |