Commit de382cfb4d13a6df633d6b843a4f0a4fa8587f9b
1 parent
7a6df601
-Two numbers
Showing
1 changed file
with
8 additions
and
3 deletions
Show diff stats
views/order/index.php
... | ... | @@ -37,7 +37,7 @@ JS; |
37 | 37 | ?> |
38 | 38 | <h1>Заказы</h1> |
39 | 39 | <p> |
40 | - <?= Html::a('Add order', [ 'create' ], [ 'class' => 'btn btn-success' ]) ?> | |
40 | + <?= Html::a(\Yii::t('app', 'Добавить заказ'), [ 'create' ], [ 'class' => 'btn btn-success' ]) ?> | |
41 | 41 | </p> |
42 | 42 | <?php Pjax::begin(); ?> |
43 | 43 | <?php |
... | ... | @@ -53,7 +53,7 @@ JS; |
53 | 53 | <p> |
54 | 54 | |
55 | 55 | <?php echo Html::submitButton( |
56 | - 'Search', | |
56 | + \Yii::t('app', 'Искать'), | |
57 | 57 | [ |
58 | 58 | 'class' => 'btn btn-primary', |
59 | 59 | ] |
... | ... | @@ -261,7 +261,12 @@ JS; |
261 | 261 | } |
262 | 262 | }, |
263 | 263 | ], |
264 | - 'phone', | |
264 | + [ | |
265 | + 'attribute' => 'phone', | |
266 | + 'content' => function($model) { | |
267 | + return $model->phone . '<br>' . $model->phone2; | |
268 | + } | |
269 | + ], | |
265 | 270 | [ |
266 | 271 | 'attribute' => 'adress', |
267 | 272 | 'content' => function($model) { | ... | ... |