From bb7b9e83ec793537094b74862fc405a8db147e1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ses=C3=B3stris=20Vieira?= Date: Tue, 14 Mar 2023 10:25:11 -0300 Subject: [PATCH] =?UTF-8?q?Atualiza=20template=20de=20relat=C3=B3rios=20e?= =?UTF-8?q?=20of=C3=ADcios?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sigi/templates/pdf/base.html | 3 +++ sigi/templates/pdf/base_report.html | 24 +++++++++++------------- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/sigi/templates/pdf/base.html b/sigi/templates/pdf/base.html index 7716a19..cf9ef87 100644 --- a/sigi/templates/pdf/base.html +++ b/sigi/templates/pdf/base.html @@ -21,6 +21,9 @@ {% endblock %} {% block extra_page_settings %}{% endblock extra_page_settings %} } + body { + margin: 0; + } h1 { bookmark-level: 1 } h2 { bookmark-level: 2 } h3 { bookmark-level: 3 } diff --git a/sigi/templates/pdf/base_report.html b/sigi/templates/pdf/base_report.html index 4c0fae4..3416d0c 100644 --- a/sigi/templates/pdf/base_report.html +++ b/sigi/templates/pdf/base_report.html @@ -18,19 +18,16 @@ header { text-align: left; } header p { - margin: 5px; + margin: 0; } footer { - text-align: center; + text-align: right; } footer img { - width: 300px; + width: {% if "landscape" in pagesize %}257{% else %}170{% endif %}mm; } -footer p { - margin-bottom: 3px; -} .report_name { font-size: 1.6em; } @@ -70,18 +67,19 @@ ul { {% endblock extra_style %} {% block body_content %} -
{% block header %} -

{% trans 'SENADO FEDERAL' %}

-

{% trans 'Instituto Legislativo Brasileiro - ILB' %}

-

{% trans "INTERLEGIS" %}

-

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

{% endblock header %} +
+ {% block header %} +

{% trans 'SENADO FEDERAL' %}

+

{% trans 'Instituto Legislativo Brasileiro - ILB - Interlegis' %}

+

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

+ {% endblock header %}
{% spaceless %} {% endspaceless %}