From 0751a44d21070b05a9249618c18637a41ec3e4f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 9 Nov 2020 15:44:21 +0100 Subject: [PATCH] Update designs to support delivery-notes --- resources/views/pdf-designs/bold.html | 12 +++++++++++- resources/views/pdf-designs/business.html | 11 +++++++++++ resources/views/pdf-designs/clean.html | 8 ++++++++ resources/views/pdf-designs/creative.html | 9 +++++++++ resources/views/pdf-designs/elegant.html | 8 ++++++++ resources/views/pdf-designs/hipster.html | 8 ++++++++ resources/views/pdf-designs/modern.html | 8 ++++++++ resources/views/pdf-designs/plain.html | 14 ++++++++++++-- resources/views/pdf-designs/playful.html | 11 +++++++++++ 9 files changed, 86 insertions(+), 3 deletions(-) diff --git a/resources/views/pdf-designs/bold.html b/resources/views/pdf-designs/bold.html index 7eff09713eaf..667fd001a539 100644 --- a/resources/views/pdf-designs/bold.html +++ b/resources/views/pdf-designs/bold.html @@ -83,7 +83,8 @@ } #product-table, - #task-table { + #task-table, + #delivery-note-table { min-width: 100%; table-layout: fixed; overflow-wrap: break-word; @@ -98,37 +99,44 @@ } #product-table > thead, + #delivery-note-table > thead, #task-table > thead { text-align: left; } #product-table > thead > tr > th, + #delivery-note-table > thead > tr > th, #task-table > thead > tr > th { padding: 2rem; font-size: 1.5rem; } #product-table > thead > tr > th:last-child, + #delivery-note-table > thead > tr > th:last-child, #task-table > thead > tr > th:last-child { text-align: right; } #product-table > tbody > tr > td, + #delivery-note-table > tbody > tr > td, #task-table > tbody > tr > td { padding: 1.5rem; } #product-table > tbody > tr > td:last-child, + #delivery-note-table > tbody > tr > td:last-child, #task-table > tbody > tr > td:last-child { text-align: right; } #product-table > tbody > tr > td:first-child, + #delivery-note-table > tbody > tr > td:first-child, #task-table > tbody > tr > td:first-child { font-weight: bold; } #product-table > tbody > tr:nth-child(odd), + #delivery-note-table > tbody > tr:nth-child(odd), #task-table > tbody > tr:nth-child(odd) { background-color: #ebebeb; } @@ -194,6 +202,8 @@
+ +
diff --git a/resources/views/pdf-designs/business.html b/resources/views/pdf-designs/business.html index a18ff9bb44b3..ea6f1ad13d9e 100644 --- a/resources/views/pdf-designs/business.html +++ b/resources/views/pdf-designs/business.html @@ -93,6 +93,7 @@ } #product-table, + #delivery-note-table, #task-table { margin-top: 3.5rem; /* margin-bottom: 200px; */ @@ -108,12 +109,14 @@ } #product-table > thead, + #delivery-note-table > thead, #task-table > thead { text-align: left; background: var(--secondary-color); } #product-table > thead > tr > th, + #delivery-note-table > thead > tr > th, #task-table > thead > tr > th { padding: 1rem; color: white; @@ -121,32 +124,38 @@ } #product-table > thead > tr > th:first-child, + #delivery-note-table > thead > tr > th:first-child, #task-table > thead > tr > th:first-child { border-top-left-radius: 1rem; } #product-table > thead > tr > th:last-child, + #delivery-note-table > thead > tr > th:last-child, #task-table > thead > tr > th:last-child { border-top-right-radius: 1rem; text-align: right; } #product-table > tbody > tr > td, + #delivery-note-table > tbody > tr > td, #task-table > tbody > tr > td { padding: 1rem; } #product-table > tbody > tr > td:last-child, + #delivery-note-table > tbody > tr > td:last-child, #task-table > tbody > tr > td:last-child { text-align: right; } #product-table > tbody > tr:nth-child(odd) > td, + #delivery-note-table > tbody > tr:nth-child(odd) > td, #task-table > tbody > tr:nth-child(odd) > td { background: #e8e8e8; } #product-table > tbody > tr:nth-child(even) > td, + #delivery-note-table > tbody > tr:nth-child(even) > td, #task-table > tbody > tr:nth-child(even) > td { background: #f7f7f7; } @@ -235,6 +244,8 @@
+ +
diff --git a/resources/views/pdf-designs/clean.html b/resources/views/pdf-designs/clean.html index 223cdbddeb5d..f2c694a58d55 100644 --- a/resources/views/pdf-designs/clean.html +++ b/resources/views/pdf-designs/clean.html @@ -78,6 +78,7 @@ } #product-table, + #delivery-note-table, #task-table { margin-top: 3rem; /* margin-bottom: 200px; */ @@ -93,11 +94,13 @@ } #product-table > thead, + #delivery-note-table > thead, #task-table > thead { text-align: left; } #product-table > thead > tr > th, + #delivery-note-table > thead > tr > th, #task-table > thead > tr > th { font-size: 1.1rem; padding-bottom: 1.5rem; @@ -105,17 +108,20 @@ } #product-table > tbody > tr > td, + #delivery-note-table > tbody > tr > td, #task-table > tbody > tr > td { border-bottom: 1px solid #9f9f9f; padding: 1rem; } #product-table > tbody > tr > td:first-child, + #delivery-note-table > tbody > tr > td:first-child, #task-table > tbody > tr > td:first-child { color: var(--primary-color); } #product-table > tbody > tr:nth-child(odd), + #delivery-note-table > tbody > tr:nth-child(odd), #task-table > tbody > tr:nth-child(odd) { background-color: #f5f5f5; } @@ -179,6 +185,8 @@
+ +
diff --git a/resources/views/pdf-designs/creative.html b/resources/views/pdf-designs/creative.html index faa2e3045b45..21561dca698b 100644 --- a/resources/views/pdf-designs/creative.html +++ b/resources/views/pdf-designs/creative.html @@ -87,6 +87,7 @@ } #product-table, + #delivery-note-table, #task-table { margin-top: 3rem; /* margin-bottom: 200px; */ @@ -103,32 +104,38 @@ } #product-table > thead, + #delivery-note-table > thead, #task-table > thead { text-align: left; } #product-table > thead > tr > th, + #delivery-note-table > thead > tr > th, #task-table > thead > tr > th { font-size: 1.1rem; padding: 1rem; } #product-table > thead > tr > th:last-child, + #delivery-note-table > thead > tr > th:last-child, #task-table > thead > tr > th:last-child { text-align: right; } #product-table > tbody > tr > td:last-child, + #delivery-note-table > tbody > tr > td:last-child, #task-table > tbody > tr > td:last-child { text-align: right; } #product-table > tbody > tr > td, + #delivery-note-table > tbody > tr > td, #task-table > tbody > tr > td { padding: 1rem; } #product-table > tbody > tr:nth-child(odd), + #delivery-note-table > tbody > tr:nth-child(odd), #task-table > tbody > tr:nth-child(odd) { background-color: #e8e8e8; } @@ -197,6 +204,8 @@
+ +
diff --git a/resources/views/pdf-designs/elegant.html b/resources/views/pdf-designs/elegant.html index f31e4aa3dc74..d796e24a5dc5 100644 --- a/resources/views/pdf-designs/elegant.html +++ b/resources/views/pdf-designs/elegant.html @@ -80,6 +80,7 @@ } #product-table, + #delivery-note-table, #task-table { margin-top: 3rem; /* margin-bottom: 200px; */ @@ -95,11 +96,13 @@ } #product-table > thead, + #delivery-note-table > thead, #task-table > thead { text-align: left; } #product-table > thead > tr > th, + #delivery-note-table > thead > tr > th, #task-table > thead > tr > th { font-size: 1.1rem; padding-bottom: 1.5rem; @@ -109,17 +112,20 @@ } #product-table > thead > tr > th:last-child, + #delivery-note-table > thead > tr > th:last-child, #task-table > thead > tr > th:last-child { text-align: right; } #product-table > tbody > tr > td, + #delivery-note-table > tbody > tr > td, #task-table > tbody > tr > td { border-bottom: 1px solid; padding: 1rem; } #product-table > tbody > tr > td:last-child, + #delivery-note-table > tbody > tr > td:last-child, #task-table > tbody > tr > td:last-child { text-align: right; } @@ -204,6 +210,8 @@
+ +

$thanks_label!

diff --git a/resources/views/pdf-designs/hipster.html b/resources/views/pdf-designs/hipster.html index 00b68b5772c6..93d64ad5ff16 100644 --- a/resources/views/pdf-designs/hipster.html +++ b/resources/views/pdf-designs/hipster.html @@ -98,6 +98,7 @@ } #product-table, + #delivery-note-table, #task-table { margin-top: 3rem; /* margin-bottom: 200px; */ @@ -112,6 +113,7 @@ color: grey; } + #product-table > thead, #product-table > thead, #task-table > thead { text-align: left; @@ -120,6 +122,7 @@ } #product-table > thead > tr > th, + #delivery-note-table > thead > tr > th, #task-table > thead > tr > th { font-size: 1.1rem; padding-bottom: 1.5rem; @@ -128,17 +131,20 @@ } #product-table > thead > tr > th:last-child, + #delivery-note-table > thead > tr > th:last-child, #task-table > thead > tr > th:last-child { text-align: right; } #product-table > tbody > tr > td, + #delivery-note-table > tbody > tr > td, #task-table > tbody > tr > td { padding: 1rem; border-left: 1px solid; } #product-table > tbody > tr td:last-child, + #delivery-note-table > tbody > tr td:last-child, #task-table > tbody > tr td:last-child { text-align: right; } @@ -233,6 +239,8 @@
+ +
diff --git a/resources/views/pdf-designs/modern.html b/resources/views/pdf-designs/modern.html index 703d697ab4b8..42c3b5bbbcf1 100644 --- a/resources/views/pdf-designs/modern.html +++ b/resources/views/pdf-designs/modern.html @@ -71,6 +71,7 @@ } #product-table, + #delivery-note-table, #task-table { min-width: 100%; table-layout: fixed; @@ -78,11 +79,13 @@ } #product-table > thead, + #delivery-note-table > thead, #task-table > thead { text-align: left; } #product-table > thead > tr > th, + #delivery-note-table > thead > tr > th, #task-table > thead > tr > th { padding: 0.8rem; background-color: var(--secondary-color); @@ -90,22 +93,26 @@ } #product-table > thead > tr > th:last-child, + #delivery-note-table > thead > tr > th:last-child, #task-table > thead > tr > th:last-child { text-align: right; } #product-table > tbody > tr > td, + #delivery-note-table > tbody > tr > td, #task-table > tbody > tr > td { border-bottom: 1px solid var(--secondary-color); padding: 1rem; } #product-table > tbody > tr > td:first-child, + #delivery-note-table > tbody > tr > td:first-child, #task-table > tbody > tr > td:first-child { font-weight: bold; } #product-table > tbody > tr > td:last-child, + #delivery-note-table > tbody > tr > td:last-child, #task-table > tbody > tr > td:last-child { text-align: right; } @@ -235,6 +242,7 @@
+
diff --git a/resources/views/pdf-designs/plain.html b/resources/views/pdf-designs/plain.html index 21692efec73e..1d2ca1cbf35e 100644 --- a/resources/views/pdf-designs/plain.html +++ b/resources/views/pdf-designs/plain.html @@ -58,7 +58,9 @@ flex-direction: column; } - #product-table, #task-table { + #product-table, + #delivery-note-table, + #task-table { min-width: 100%; table-layout: fixed; overflow-wrap: break-word; @@ -72,28 +74,34 @@ color: grey; } - #product-table, #task-table > thead { + #product-table > thead, + #delivery-note-table > thead, + #task-table > thead { text-align: left; } #product-table > thead > tr > th, + #delivery-note-table > thead > tr > th, #task-table > thead > tr > th { padding: 1rem; background-color: #e6e6e6; } #product-table > thead > tr > th:last-child, + #delivery-note-table > thead > tr > th:last-child, #task-table > thead > tr > th:last-child { text-align: right; } #product-table > tbody > tr > td, + #delivery-note-table > tbody > tr > td, #task-table > tbody > tr > td { border-bottom: 1px solid #e6e6e6; padding: 1rem; } #product-table > tbody > tr > td:last-child, + #delivery-note-table > tbody > tr > td:last-child, #task-table > tbody > tr > td:last-child { text-align: right; } @@ -150,6 +158,8 @@
+ +
diff --git a/resources/views/pdf-designs/playful.html b/resources/views/pdf-designs/playful.html index 51297ad7d5c9..437693a37fe1 100644 --- a/resources/views/pdf-designs/playful.html +++ b/resources/views/pdf-designs/playful.html @@ -88,6 +88,7 @@ } #product-table, + #delivery-note-table, #task-table { margin-top: 3rem; /* margin-bottom: 200px; */ @@ -103,11 +104,13 @@ } #product-table > thead, + #delivery-note-table > thead, #task-table > thead { text-align: left; } #product-table > thead > tr > th, + #delivery-note-table > thead > tr > th, #task-table > thead > tr > th { font-size: 1.2rem; padding: 1rem; @@ -116,34 +119,40 @@ } #product-table > thead tr > th:last-child, + #delivery-note-table > thead tr > th:last-child, #task-table > thead tr > th:last-child { text-align: right; } #product-table > thead tr > th:first-child, + #delivery-note-table > thead tr > th:first-child, #task-table > thead tr > th:first-child { border-top-left-radius: 10px; border-bottom-left-radius: 10px; } #product-table > thead tr > th:last-child, + #delivery-note-table > thead tr > th:last-child, #task-table > thead tr > th:last-child { border-top-right-radius: 10px; border-bottom-right-radius: 10px; } #product-table > tbody > tr > td, + #delivery-note-table > tbody > tr > td, #task-table > tbody > tr > td { border-bottom: 1px solid var(--primary-color); padding: 1rem; } #product-table > tbody > tr > td:first-child, + #delivery-note-table > tbody > tr > td:first-child, #task-table > tbody > tr > td:first-child { color: var(--primary-color); } #product-table > tbody > tr > td:last-child, + #delivery-note-table > tbody > tr > td:last-child, #task-table > tbody > tr > td:last-child { text-align: right; } @@ -218,6 +227,8 @@
+ +