diff --git a/src/messages/ru/finance.php b/src/messages/ru/finance.php index ae827f6e..0d4b3d0e 100644 --- a/src/messages/ru/finance.php +++ b/src/messages/ru/finance.php @@ -18,4 +18,5 @@ 'Confirm invoice updating' => 'Подтвердите обновление инвойса', 'Invoice' => 'Инвойс', 'Invoices' => 'Инвойсы', + 'Recharge account' => 'Пополнить счёт', ]; diff --git a/src/views/bill/index.php b/src/views/bill/index.php index 4eec10ae..fbdbb9f9 100644 --- a/src/views/bill/index.php +++ b/src/views/bill/index.php @@ -2,6 +2,7 @@ use hipanel\modules\finance\grid\BillGridView; use hipanel\widgets\ActionBox; +use yii\helpers\Html; $this->title = Yii::t('app', 'Bills'); $this->params['breadcrumbs'][] = $this->title; @@ -15,7 +16,7 @@ if (Yii::$app->user->can('manage')) { echo $box->renderCreateButton(Yii::t('app', 'Add payment')) . ' '; } - echo $box->renderCreateButton(Yii::t('app', 'Recharge account')); + echo Html::a(Yii::t('hipanel/finance', 'Recharge account'), ['@pay/deposit'], ['class' => 'btn btn-success']); ?> renderSearchButton() ?> renderSorter([