fix Twig templates
This commit is contained in:
bovenliggende
79ec86cdda
commit
2f72319820
@ -3,7 +3,7 @@
|
||||
{% block pdfDocumentInformations %}
|
||||
<div>
|
||||
{% 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) }}
|
||||
</div>
|
||||
{% endblock %}
|
||||
</div>
|
||||
|
@ -22,15 +22,15 @@
|
||||
</style>
|
||||
|
||||
{# horizontal #}
|
||||
{% for rulerItemsHorizontal in 10..600 %}
|
||||
<div class="rulerItemHorizontal" style="left: {{ smarty.section.rulerItemsHorizontal.index - pagePadding.3 }}mm">
|
||||
{% for rulerItemsHorizontal in range(10, 600, 10) %}
|
||||
<div class="rulerItemHorizontal" style="left: {{ loop.index0 - pagePadding.3 }}mm">
|
||||
{{ loop.index0 }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
{# vertical #}
|
||||
{% for rulerItemsVertical in 0..600 %}
|
||||
<div class="rulerItemVertical" style="top: {{ smarty.section.rulerItemsVertical.index - pagePadding.0 }}mm">
|
||||
{% for rulerItemsVertical in range(0, 600, 10) %}
|
||||
<div class="rulerItemVertical" style="top: {{ loop.index0 - pagePadding.0 }}mm">
|
||||
{{ loop.index0 }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
@ -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 %}
|
||||
|
Laden…
Verwijs in nieuw issue
Block a user