From 571a826a51cedb85ce71f137942f55285cd3fbe0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20Sz=C3=BCcs?= Date: Sun, 15 Jun 2025 00:30:33 +0200 Subject: [PATCH] Fix: Convert button on eml-to-pdf html --- .../templates/convert/eml-to-pdf.html | 107 +++++++++--------- 1 file changed, 55 insertions(+), 52 deletions(-) diff --git a/stirling-pdf/src/main/resources/templates/convert/eml-to-pdf.html b/stirling-pdf/src/main/resources/templates/convert/eml-to-pdf.html index 2f1eb3ba3..88b66b4b0 100644 --- a/stirling-pdf/src/main/resources/templates/convert/eml-to-pdf.html +++ b/stirling-pdf/src/main/resources/templates/convert/eml-to-pdf.html @@ -7,62 +7,64 @@ +
-
+

+
-
-
-
-
- email - -
-
-
-
- -
- - -
-
- -
-
- - -
- -
- - -
- - -
- -
- -
-
-

-
    -
  • -
  • -
  • -
-
-
-
- - -
-
+
+
+ email +
+

+
+
+
+ +
+ + +
+
+ +
+
+ + +
+ +
+ + +
+
+ +
+ +
+
+

+
    +
  • +
  • +
  • +
+
+
+
+ +
+
+ +
+
+
@@ -75,11 +77,12 @@ const downloadHtml = document.getElementById('downloadHtml'); const pdfOnlyOptions = document.getElementById('pdfOnlyOptions'); const submitBtn = document.getElementById('submitBtn'); + const submitText = /*[[#{EMLToPDF.submit}]]*/ 'Convert to PDF'; function updateFormState() { if (pdfOnlyOptions && submitBtn) { pdfOnlyOptions.style.display = downloadHtml.checked ? 'none' : 'block'; - submitBtn.textContent = downloadHtml.checked ? 'Download HTML' : '[[#{EMLToPDF.submit}]]'; + submitBtn.textContent = downloadHtml.checked ? 'Download HTML' : submitText; } }