From 3851808a279e5be407e6b691a39589d1a25fe42c Mon Sep 17 00:00:00 2001 From: Luthando Ndlela <104898641+luthando5@users.noreply.github.com> Date: Wed, 26 Apr 2023 16:21:06 +0200 Subject: [PATCH] Watermark placed in center of every page (#11) * Watermark placed in center of every page * Made size auto and adjusted positioning of watermark * Using actual pixel values for height and length and tilt change * Renamed coa --- src/bika/coa/ajax.py | 2 +- .../{MultiZim.pt => MultiSampleTransposed.pt} | 27 ++++++++++++------- 2 files changed, 18 insertions(+), 11 deletions(-) rename src/bika/coa/reports/{MultiZim.pt => MultiSampleTransposed.pt} (98%) diff --git a/src/bika/coa/ajax.py b/src/bika/coa/ajax.py index d8fa5d6..5dc3268 100644 --- a/src/bika/coa/ajax.py +++ b/src/bika/coa/ajax.py @@ -80,7 +80,7 @@ def ajax_save_reports(self): elif template == "bika.coa:MultiBatch.pt": csv_report= self.create_batch_csv_reports(samples,coa_num) csv_reports = [csv_report for i in range(len(pdf_reports))] - if template == "bika.coa:MultiZim.pt": + if template == "bika.coa:MultiSampleTransposed.pt": csv_report = self.create_zlabs_csv_report(samples,coa_num) csv_reports = [csv_report for i in range(len(pdf_reports))] elif is_multi_template: diff --git a/src/bika/coa/reports/MultiZim.pt b/src/bika/coa/reports/MultiSampleTransposed.pt similarity index 98% rename from src/bika/coa/reports/MultiZim.pt rename to src/bika/coa/reports/MultiSampleTransposed.pt index 4ca6ae0..682a6a6 100644 --- a/src/bika/coa/reports/MultiZim.pt +++ b/src/bika/coa/reports/MultiSampleTransposed.pt @@ -84,19 +84,25 @@ font-size: 9pt; } + .footerContainer { + position:relative; + width:100%; + height:100px; + } + .bgbehind { background-image:url(); z-index:100; - background-position: center; - background-size: 400px 300px; + background-position: top right; + background-size: 833px 290px; opacity:0.1 !important; background-repeat: no-repeat; position: absolute; - transform: rotate(315deg); + top: -850%; + left: 40%; + transform: rotate(305deg); width: ; height:; - margin: -20mm; - padding: -20mm; } .report .section-footer #footer-line { @@ -104,7 +110,6 @@ height: 2mm; border-top: 1px solid black; } - -
-
+
@@ -422,8 +426,6 @@

Signatories

-
-
@@ -686,9 +688,13 @@ +
@@ -714,6 +720,7 @@
+