mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-30 02:23:47 +00:00
fix(admin): rework email template editor (#667043)
Companion to the bot-side fix: defaults now arrive with {placeholders}
instead of baked-in sample values (example.com links).
- inline preview tab (iframe srcDoc) — works on mobile and in Telegram;
the separate desktop-only preview page and its route are removed
- preview/test render the CURRENT editor content with sample values
- test email: recipient input + detailed backend error messages
- variable chips insert at cursor instead of copying to clipboard
- 'insert default template' button to migrate broken saved overrides
- fa added to language tabs
This commit is contained in:
@@ -1563,9 +1563,13 @@
|
||||
"resetted": "Шаблон сброшен к значению по умолчанию",
|
||||
"testSent": "Тестовое письмо отправлено",
|
||||
"variables": "Доступные переменные",
|
||||
"clickToCopy": "Нажмите для копирования",
|
||||
"previewDesktopOnly": "Предпросмотр доступен только в веб-версии на десктопе",
|
||||
"previewNotAvailable": "Предпросмотр недоступен"
|
||||
"editorTab": "Редактор",
|
||||
"previewHint": "Превью показывает письмо с примерами значений вместо переменных.",
|
||||
"clickToInsert": "Нажмите, чтобы вставить в текст",
|
||||
"insertDefault": "Вставить шаблон по умолчанию",
|
||||
"insertDefaultConfirm": "Заменить текущее содержимое шаблоном по умолчанию?",
|
||||
"testRecipientPlaceholder": "Email получателя (по умолчанию — ваш)",
|
||||
"testHint": "Отправит текущее содержимое редактора с примерами значений вместо переменных."
|
||||
},
|
||||
"payments": {
|
||||
"title": "Платежи",
|
||||
|
||||
Reference in New Issue
Block a user