The add/remove template buttons sat directly below the fixed-height list with only 6px of margin to the tab's bottom edge - enough on this dev machine but not on the operator's real one (different DPI/font scale), so the buttons rendered off the visible area. Moved them above the list instead (visibility no longer depends on how much space is left at the bottom) and gave the whole "Шаблоны" tab substantially more vertical room throughout. Also added an optional per-template login regex filter (MailTemplateDefinition.LoginPattern): once a file's suffix matches a template, its login must also match that template's pattern (if any) or the row surfaces as a clear Error in the preview instead of silently going through - addresses "непонятно что будет работать". Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
24 lines
1.9 KiB
JSON
24 lines
1.9 KiB
JSON
{
|
|
"archiveFolder": "",
|
|
"emailDomain": "redlab.lo",
|
|
"testModeDefault": true,
|
|
"signatureHtmlPath": "",
|
|
"fromAccountSmtpAddress": "",
|
|
"templates": [
|
|
{
|
|
"displayName": "Новый доступ (ключ + конфиг)",
|
|
"fileSuffix": "ssh_access",
|
|
"subject": "Доступ к SSH jump-хосту — {Login}",
|
|
"bodyHtml": "<p>Здравствуйте!</p><p>Во вложении — архив с вашим персональным SSH-ключом, готовым клиентским конфигом и краткой инструкцией по подключению (<b>{Login}_ssh_access.7z</b>).</p><p>Пароль от архива будет отправлен отдельным сообщением — не пересылайте архив вместе с паролем.</p><p>Если по какой-то причине не получается распаковать архив или подключиться — напишите в ответ на это письмо.</p>",
|
|
"loginPattern": ""
|
|
},
|
|
{
|
|
"displayName": "Обновление конфига",
|
|
"fileSuffix": "config_update",
|
|
"subject": "Обновление конфигурации доступа — {Login}",
|
|
"bodyHtml": "<p>Здравствуйте!</p><p>Список доступных вам через jump-хост сервисов изменился. Во вложении — обновлённый клиентский конфиг и инструкция (<b>{Login}_config_update.7z</b>). Ваш существующий SSH-ключ по-прежнему действителен, переустанавливать его не нужно — достаточно заменить конфиг.</p><p>Пароль от архива будет отправлен отдельным сообщением — не пересылайте архив вместе с паролем.</p>",
|
|
"loginPattern": ""
|
|
}
|
|
]
|
|
}
|