Add promo code toggle and activations handling in admin panel
- Implemented a new handler to toggle the active status of promo codes, allowing admins to activate or deactivate codes easily. - Added functionality to display activations for specific promo codes, enhancing visibility into their usage. - Updated localization files to include new messages related to promo status changes and activations in both English and Russian, improving admin experience.
This commit is contained in:
@@ -412,11 +412,19 @@
|
||||
"admin_promo_card_created_by": "👤 Создал: <b>{creator}</b>",
|
||||
"admin_promo_status_active": "✅ Активен",
|
||||
"admin_promo_status_inactive": "🚫 Неактивен",
|
||||
"admin_promo_status_activated": "активирован",
|
||||
"admin_promo_status_deactivated": "деактивирован",
|
||||
"admin_promo_status_expired": "⏰ Истек",
|
||||
"admin_promo_status_used_up": "🔄 Исчерпан",
|
||||
"admin_promo_toggle_status_button": "🔄 Вкл/Выкл",
|
||||
"admin_promo_view_activations_button": "📋 Активации",
|
||||
"admin_promo_back_to_list_button": "⬅️ К списку",
|
||||
"admin_promo_toggle_success": "✅ Промокод <b>{code}</b> {status}",
|
||||
"admin_promo_toggle_failed": "❌ Ошибка изменения статуса промокода",
|
||||
"admin_promo_no_activations": "📋 <b>Активации промокода: {code}</b>\n\n❌ Активаций не найдено",
|
||||
"admin_promo_activations_header": "📋 <b>Активации промокода: {code}</b>\n\n",
|
||||
"admin_promo_activation_item": "👤 User ID: <b>{user_id}</b>\n📅 Дата: <b>{date}</b>\n",
|
||||
"admin_promo_back_to_detail_button": "⬅️ К промокоду",
|
||||
|
||||
"admin_panel_online_label": "Онлайн",
|
||||
"admin_panel_active_label": "Активных",
|
||||
|
||||
Reference in New Issue
Block a user