| @@ 16-27 (lines=12) @@ | ||
| 13 | */ |
|
| 14 | protected function initDefaultButtons() |
|
| 15 | { |
|
| 16 | if (!isset($this->buttons['view'])) { |
|
| 17 | $this->buttons['view'] = function ($url, $model) { |
|
| 18 | return Html::a( |
|
| 19 | Icon::show('eye', ['class' => 'fa-lg'], Icon::FA), |
|
| 20 | $url, |
|
| 21 | [ |
|
| 22 | 'title' => \Yii::t('yii', 'View'), |
|
| 23 | 'data-pjax' => '0', |
|
| 24 | ] |
|
| 25 | ); |
|
| 26 | }; |
|
| 27 | } |
|
| 28 | if (!isset($this->buttons['update'])) { |
|
| 29 | $this->buttons['update'] = function ($url, $model) { |
|
| 30 | return Html::a( |
|
| @@ 28-39 (lines=12) @@ | ||
| 25 | ); |
|
| 26 | }; |
|
| 27 | } |
|
| 28 | if (!isset($this->buttons['update'])) { |
|
| 29 | $this->buttons['update'] = function ($url, $model) { |
|
| 30 | return Html::a( |
|
| 31 | Icon::show('edit', ['class' => 'fa-lg'], Icon::FA), |
|
| 32 | $url, |
|
| 33 | [ |
|
| 34 | 'title' => \Yii::t('yii', 'Update'), |
|
| 35 | 'data-pjax' => '0', |
|
| 36 | ] |
|
| 37 | ); |
|
| 38 | }; |
|
| 39 | } |
|
| 40 | if (!isset($this->buttons['delete'])) { |
|
| 41 | $this->buttons['delete'] = function ($url, $model) { |
|
| 42 | return Html::a( |
|