feat(admin): show common placeholders group in email template editor

Companion to the bot-side change: the variables hint now renders two
groups — type-specific vars and common ones ({service_name},
{cabinet_url}, {support_username}, {username}, {email}, {date}) that
work in every template. The block is visible even for types with no
vars of their own (previously it was hidden entirely, looking like
placeholders didn't exist). Common chips insert at cursor the same way.
This commit is contained in:
c0mrade
2026-06-10 23:37:31 +03:00
parent 81581f5c9b
commit 8b2501d908
6 changed files with 53 additions and 22 deletions

View File

@@ -1420,7 +1420,8 @@
"insertDefault": "درج قالب پیش‌فرض",
"insertDefaultConfirm": "محتوای فعلی با قالب پیش‌فرض جایگزین شود؟",
"testRecipientPlaceholder": "ایمیل گیرنده (پیش‌فرض: ایمیل شما)",
"testHint": "محتوای فعلی ویرایشگر با مقادیر نمونه به جای متغیرها ارسال می‌شود."
"testHint": "محتوای فعلی ویرایشگر با مقادیر نمونه به جای متغیرها ارسال می‌شود.",
"variablesCommon": "متغیرهای عمومی (در همه قالب‌ها کار می‌کنند)"
},
"wheel": {
"title": "تنظیمات چرخ شانس",