Commit 653d275482234e9cdf8d8a96e298a343af405869

Authored by Alexey Boroda
1 parent 8201e577

-Order module small screen fix

Showing 1 changed file with 15 additions and 2 deletions   Show diff stats
views/order/index.php
... ... @@ -200,7 +200,7 @@ JS;
200 200 if (empty( $manager )) {
201 201 return $model->id;
202 202 } else {
203   - return $model->id . ' ' . $manager->username;
  203 + return $model->id . '<br>' . $manager->username;
204 204 }
205 205 },
206 206 ],
... ... @@ -247,7 +247,20 @@ JS;
247 247 },
248 248 ],
249 249 'phone',
250   - 'adress',
  250 + [
  251 + 'attribute' => 'adress',
  252 + 'content' => function($model) {
  253 + if (!empty( $model->adress )) {
  254 + return Html::a(StringHelper::truncate($model->adress, 10, '...'), '#', [
  255 + 'data-toggle' => 'tooltip',
  256 + 'title' => $model->adress,
  257 + 'onclick' => 'event.preventDefault();',
  258 + ]);
  259 + } else {
  260 + return '';
  261 + }
  262 + },
  263 + ],
251 264 [
252 265 'attribute' => 'label',
253 266 'filter' => false,
... ...