<commit_before><?php

namespace hipanel\modules\finance\menus;

use hipanel\widgets\ModalButton;
use Yii;
use yii\helpers\Html;

class TariffActionsMenu extends \hiqdev\menumanager\Menu
{
    public $model;

    public function items()
    {
        return [
            [
                'label' => Yii::t('hipanel', 'Update'),
                'icon' => 'fa fa-pencil',
                'url' => ['@tariff/update', 'id' => $this->model->id],
            ],
            [
                'label' => ModalButton::widget([
                    'model' => $this->model->getTariff(),
                    'scenario' => 'delete',
                    'button' => ['label' => '<i class="fa fa-fw fa-trash-o"></i>' . Yii::t('hipanel', 'Delete')],
                    'body' => Yii::t('hipanel:finance:tariff', 'Tariff must be unlinked form all objects before. Are you sure you want to delete tariff {name}?', ['name' => $model->name]),
                    'modal' => [
                        'header' => Html::tag('h4', Yii::t('hipanel:finance:tariff', 'Confirm tariff deleting')),
                        'headerOptions' => ['class' => 'label-danger'],
                        'footer' => [
                            'label' => Yii::t('hipanel:finance:tariff', 'Delete tariff'),
                            'data-loading-text' => Yii::t('hipanel:finance:tariff', 'Deleting tariff...'),
                            'class' => 'btn btn-danger',
                        ]<commit_msg>minor<commit_after><?php

namespace hipanel\modules\finance\menus;

use hipanel\widgets\ModalButton;
use Yii;
use yii\helpers\Html;

class TariffActionsMenu extends \hiqdev\menumanager\Menu
{
    public $model;

    public function items()
    {
        return [
            [
                'label' => Yii::t('hipanel', 'Update'),
                'icon' => 'fa-pencil',
                'url' => ['@tariff/update', 'id' => $this->model->id],
            ],
            [
                'label' => ModalButton::widget([
                    'model' => $this->model->getTariff(),
                    'scenario' => 'delete',
                    'button' => ['label' => '<i class="fa fa-fw fa-trash-o"></i>' . Yii::t('hipanel', 'Delete')],
                    'body' => Yii::t('hipanel:finance:tariff', 'Tariff must be unlinked form all objects before. Are you sure you want to delete tariff {name}?', ['name' => $model->name]),
                    'modal' => [
                        'header' => Html::tag('h4', Yii::t('hipanel:finance:tariff', 'Confirm tariff deleting')),
                        'headerOptions' => ['class' => 'label-danger'],
                        'footer' => [
                            'label' => Yii::t('hipanel:finance:tariff', 'Delete tariff'),
                            'data-loading-text' => Yii::t('hipanel:finance:tariff', 'Deleting tariff...'),
                            'class' => 'btn btn-danger',
                        ]
{'fraction_non_alphanumeric': 0.17512776831345825, 'fraction_numerical': 0.0006814310051107325, 'mean_word_length': 1.6788321167883211, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 55, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7636582', 'n_tokens_mistral': 885, 'n_tokens_neox': 856, 'n_words': 171}