for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* HiPanel tickets module
*
* @link https://github.com/hiqdev/hipanel-module-ticket
* @package hipanel-module-ticket
* @license BSD-3-Clause
* @copyright Copyright (c) 2015-2017, HiQDev (http://hiqdev.com/)
*/
namespace hipanel\modules\ticket\menus;
use Yii;
class TemplateActionsMenu extends \hiqdev\yii2\menus\Menu
{
public $model;
public function items()
return [
[
'label' => Yii::t('hipanel', 'Update'),
'icon' => 'fa-pencil',
'url' => ['@ticket/template/update', 'id' => $this->model->id],
],
'label' => Yii::t('hipanel', 'Delete'),
'icon' => 'fa-trash',
'url' => ['@ticket/template/delete', 'id' => $this->model->id],
'linkOptions' => [
'data' => [
'confirm' => Yii::t('hipanel', 'Are you sure you want to delete this item?'),
'method' => 'post',
'pjax' => '0',
];
}