From 9a0f588e8f4acf6e0d4be72471572259274c1978 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ses=C3=B3stris=20Vieira?= Date: Wed, 29 Nov 2023 17:11:03 -0300 Subject: [PATCH] =?UTF-8?q?Ajusta=20rodap=C3=A9=20dos=20relat=C3=B3rios?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sigi/templates/pdf/base.html | 5 +++++ sigi/templates/pdf/base_report.html | 14 ++++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/sigi/templates/pdf/base.html b/sigi/templates/pdf/base.html index cfcbe21..5ceb02d 100644 --- a/sigi/templates/pdf/base.html +++ b/sigi/templates/pdf/base.html @@ -16,6 +16,7 @@ @top-center { content: element(header); } {% endblock %} {% block page-footer-settings %} + @bottom-left { content: element(footerLeft); } @bottom-center { content: element(footer); } @bottom-right { content: "{% trans "Página: " %}" counter(page); } {% endblock %} @@ -33,6 +34,10 @@ @media print { header {position: running(header);} footer {position: running(footer);} + .footerLeft { + text-align: center; + position: running(footerLeft); + } } body { font-family: "Helvetica", "Arial", "sans-serif"; diff --git a/sigi/templates/pdf/base_report.html b/sigi/templates/pdf/base_report.html index b26954c..6213313 100644 --- a/sigi/templates/pdf/base_report.html +++ b/sigi/templates/pdf/base_report.html @@ -25,11 +25,12 @@ footer { text-align: right; } footer img { - width: {% if "landscape" in pagesize %}257{% else %}170{% endif %}mm; + width: 105mm; } .report_name { font-size: 1.6em; + margin-top: 5px; } table { @@ -70,6 +71,7 @@ ul { {% endblock extra_style %} {% block body_content %} +{% spaceless %}
{% block header %}

{% trans 'SENADO FEDERAL' %}

@@ -77,12 +79,16 @@ ul {

{% block report_name %}{{ title|upper }}{% endblock report_name %}

{% endblock header %}
- - {% spaceless %} +
+ {% block footer_text %} + {% trans 'Emitido em' %} +
+ {% now "DATETIME_FORMAT" %} + {% endblock footer_text %} +
{% endspaceless %}