diff --git a/routes/__pycache__/main.cpython-313.pyc b/routes/__pycache__/main.cpython-313.pyc index ebfcdb2..4bf8c80 100644 Binary files a/routes/__pycache__/main.cpython-313.pyc and b/routes/__pycache__/main.cpython-313.pyc differ diff --git a/templates/settings/tabs/email_templates.html b/templates/settings/tabs/email_templates.html index 4ccefd1..3dc8af4 100644 --- a/templates/settings/tabs/email_templates.html +++ b/templates/settings/tabs/email_templates.html @@ -230,6 +230,10 @@ document.addEventListener('DOMContentLoaded', function() { const body = selectedOption.dataset.body || ''; const templateType = selectedOption.dataset.type || ''; + // Show the template editor + $('#templateEditor').show(); + + // Update the form fields $('#templateSubject').val(subject); $('#templateBody').summernote('code', body); updateAvailableVariables(templateType); @@ -241,6 +245,8 @@ document.addEventListener('DOMContentLoaded', function() { const selectedOption = templateSelect.options[templateSelect.selectedIndex]; const templateType = selectedOption.dataset.type || ''; updateAvailableVariables(templateType); + // Show the template editor if a template is initially selected + $('#templateEditor').show(); } // Handle template save