feat: admin partner settings page, partner section visibility toggle, custom requisites text

- New AdminPartnerSettings page with validation (pattern from AdminTicketSettings)
- Settings gear button on AdminPartners header
- Hide partner/withdrawal sections when partner_section_visible is false
- Use custom requisites_text as label in withdrawal form
- i18n keys for ru/en
This commit is contained in:
Fringg
2026-02-18 04:12:19 +03:00
parent 9cf8e095b8
commit 76d20fdb1a
10 changed files with 550 additions and 112 deletions

View File

@@ -1906,6 +1906,29 @@
"description": "Reject partner application from {{name}}",
"commentLabel": "Comment (optional)",
"commentPlaceholder": "Reason for rejection..."
},
"settings": "Settings",
"settingsSubtitle": "Partner program and withdrawal settings",
"settingsLoadError": "Failed to load settings",
"settingsUpdateError": "Failed to save settings",
"settingsSection": {
"referralProgram": "Referral Program",
"withdrawalSettings": "Withdrawal Settings"
},
"settingsFields": {
"programEnabled": "Referral program enabled",
"programEnabledDesc": "Enable/disable referral program for all users",
"partnerVisible": "Partner section visible in cabinet",
"partnerVisibleDesc": "Show/hide partner application and withdrawal sections for users",
"withdrawalEnabled": "Withdrawal enabled",
"withdrawalEnabledDesc": "Allow partners to request withdrawal of referral balance",
"minAmount": "Min. withdrawal amount (kopeks)",
"minAmountDesc": "Minimum amount for a withdrawal request (100 kopeks = 1 ₽)",
"cooldownDays": "Cooldown between withdrawals (days)",
"cooldownDaysDesc": "How many days must pass between withdrawal requests",
"requisitesText": "Requisites field prompt",
"requisitesTextDesc": "Custom text shown to users to describe what payment details to provide",
"requisitesTextPlaceholder": "E.g.: Provide your bank card number or USDT TRC-20 address"
}
},
"partnerDetail": {