From 220d892fa05c56dd44746674e4d0a16a753b4135 Mon Sep 17 00:00:00 2001 From: Kobe Date: Mon, 2 Jun 2025 12:07:12 +0200 Subject: [PATCH] template fix --- routes/__pycache__/main.cpython-313.pyc | Bin 75120 -> 75120 bytes templates/settings/tabs/email_templates.html | 6 ++++++ 2 files changed, 6 insertions(+) diff --git a/routes/__pycache__/main.cpython-313.pyc b/routes/__pycache__/main.cpython-313.pyc index ebfcdb2b2c7a5f47e9ff341ff22aa47e17dea2fc..4bf8c803f0fbfee6734abd3a4ce423c1a9bc66a0 100644 GIT binary patch delta 24 ecmexxisi#87Ou~{yj%=Gz){@DwUvu8O%(ua7zXbE delta 24 ecmexxisi#87Ou~{yj%=GkY3QpwUvu8O%(udR|iV~ 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