| Conditions | 1 |
| Paths | 1 |
| Total Lines | 22 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | public function items() |
||
| 13 | { |
||
| 14 | return [ |
||
| 15 | [ |
||
| 16 | 'label' => Yii::t('hipanel', 'Update'), |
||
| 17 | 'icon' => 'fa-pencil', |
||
| 18 | 'url' => ['@ticket/template/update', 'id' => $this->model->id], |
||
| 19 | ], |
||
| 20 | [ |
||
| 21 | 'label' => Yii::t('hipanel', 'Delete'), |
||
| 22 | 'icon' => 'fa-trash', |
||
| 23 | 'url' => ['@ticket/template/delete', 'id' => $this->model->id], |
||
| 24 | 'linkOptions' => [ |
||
| 25 | 'data' => [ |
||
| 26 | 'confirm' => Yii::t('hipanel', 'Are you sure you want to delete this item?'), |
||
| 27 | 'method' => 'post', |
||
| 28 | 'pjax' => '0', |
||
| 29 | ] |
||
| 30 | ], |
||
| 31 | ], |
||
| 32 | ]; |
||
| 33 | } |
||
| 34 | } |
||
| 35 |