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 | 359 | 'header' => \Yii::t('app', 'Бронь'), |
| 360 | 360 | 'inputType' => kartik\editable\Editable::INPUT_TEXT, |
| 361 | 361 | 'options' => [ |
| 362 | + 'class' => 'booking-typeahead', | |
| 362 | 363 | 'pluginOptions' => [ |
| 363 | 364 | 'min' => 0, |
| 364 | 365 | 'max' => 20, |
| 365 | 366 | ], |
| 366 | 367 | ], |
| 368 | + 'pluginEvents' => [ | |
| 369 | + 'editableSuccess' => 'function(event) { $.pjax.reload({container:"#order-products-grid"}); }', | |
| 370 | + ], | |
| 367 | 371 | ], |
| 368 | 372 | 'format' => [ |
| 369 | 373 | 'text', |
| ... | ... | @@ -375,17 +379,17 @@ JS; |
| 375 | 379 | 'attribute' => 'status', |
| 376 | 380 | 'editableOptions' => [ |
| 377 | 381 | 'header' => \Yii::t('app', 'Статус'), |
| 378 | - 'inputType' => kartik\editable\Editable::INPUT_SELECT2, | |
| 382 | + 'inputType' => kartik\editable\Editable::INPUT_TEXT, | |
| 379 | 383 | 'options' => [ |
| 380 | - 'data' => [ | |
| 381 | - 0 => 'adsas', | |
| 382 | - 2 => 'dSSSSasda', | |
| 383 | - ], | |
| 384 | + 'class' => 'status-typeahead', | |
| 384 | 385 | 'pluginOptions' => [ |
| 385 | 386 | 'min' => 0, |
| 386 | 387 | 'max' => 20, |
| 387 | 388 | ], |
| 388 | 389 | ], |
| 390 | + 'pluginEvents' => [ | |
| 391 | + 'editableSuccess' => 'function(event) { $.pjax.reload({container:"#order-products-grid"}); }', | |
| 392 | + ], | |
| 389 | 393 | ], |
| 390 | 394 | 'format' => [ |
| 391 | 395 | 'text', | ... | ... |