From 2f7231982009f122a9da5f364528adf7750d43f4 Mon Sep 17 00:00:00 2001 From: Daniel Seifert Date: Fri, 4 Oct 2024 15:59:17 +0200 Subject: [PATCH] fix Twig templates --- .../documents/deliverynote/inc/informations.html.twig | 2 +- views/twig/documents/inc/helper/rulers.html.twig | 8 ++++---- views/twig/documents/invoice/invoice.html.twig | 1 + 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/views/twig/documents/deliverynote/inc/informations.html.twig b/views/twig/documents/deliverynote/inc/informations.html.twig index d7bed08..bac0831 100644 --- a/views/twig/documents/deliverynote/inc/informations.html.twig +++ b/views/twig/documents/deliverynote/inc/informations.html.twig @@ -3,7 +3,7 @@ {% block pdfDocumentInformations %}
{% set dateFormat = 'D3_PDFDOCUMENTS_DATE_FORMAT'|translate %} - {{ translate({ ident: "D3_PDFDOCUMENTS_DATE", suffix: "COLON" }) }} {{ smarty.now|date_format(dateFormat) }} + {{ translate({ ident: "D3_PDFDOCUMENTS_DATE", suffix: "COLON" }) }} {{ "now"|date_format(dateFormat) }}
{% endblock %} diff --git a/views/twig/documents/inc/helper/rulers.html.twig b/views/twig/documents/inc/helper/rulers.html.twig index 26318f2..df0f366 100644 --- a/views/twig/documents/inc/helper/rulers.html.twig +++ b/views/twig/documents/inc/helper/rulers.html.twig @@ -22,15 +22,15 @@ {# horizontal #} -{% for rulerItemsHorizontal in 10..600 %} -
+{% for rulerItemsHorizontal in range(10, 600, 10) %} +
{{ loop.index0 }}
{% endfor %} {# vertical #} -{% for rulerItemsVertical in 0..600 %} -
+{% for rulerItemsVertical in range(0, 600, 10) %} +
{{ loop.index0 }}
{% endfor %} diff --git a/views/twig/documents/invoice/invoice.html.twig b/views/twig/documents/invoice/invoice.html.twig index b7402a2..fcf1093 100644 --- a/views/twig/documents/invoice/invoice.html.twig +++ b/views/twig/documents/invoice/invoice.html.twig @@ -14,6 +14,7 @@ {% endset %} {% set pdfBlock_content %} +{# {% include "@d3PdfDocuments/documents/inc/helper/rulers.html.twig" with {pagePadding: pagePadding} %}#} {% include "@d3PdfDocuments/documents/inc/elements/foldmarks.html.twig" with {pagePadding: pagePadding} %} {% block pdfAddressArea %}