From 78df2dd204518ea1641fa59e68d15f857b97167e Mon Sep 17 00:00:00 2001 From: ulyssesBML Date: Fri, 8 Mar 2019 17:08:46 -0300 Subject: [PATCH] =?UTF-8?q?Melhorando=20visualiza=C3=A7=C3=A3o=20do=20docu?= =?UTF-8?q?mento=20de=20extrato=20da=20reuni=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/relatorios/views.py | 2 +- sapl/static/sapl/css/header-relatorio.css | 13 ++++++++++++- sapl/templates/relatorios/header_ata.html | 2 -- sapl/templates/relatorios/relatorio_ata.html | 2 -- 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/sapl/relatorios/views.py b/sapl/relatorios/views.py index 0527c1cde..dec1d50b7 100755 --- a/sapl/relatorios/views.py +++ b/sapl/relatorios/views.py @@ -1224,6 +1224,7 @@ def make_pdf(base_url,main_template,header_template,main_css='',header_css=''): # Template of header html = HTML(base_url=base_url,string=header_template) header = html.render(stylesheets=[CSS(string='@page {size:A4; margin:1cm;}')]) + header_page = header.pages[0] header_body = get_page_body(header_page._page_box.all_children()) header_body = header_body.copy_with_children(header_body.all_children()) @@ -1263,7 +1264,6 @@ def resumo_ata_pdf(request,pk): html_template = render_to_string('relatorios/relatorio_ata.html',context) html_header = render_to_string('relatorios/header_ata.html', header_context) - pdf_file = make_pdf(base_url=base_url,main_template=html_template,header_template=html_header) response = HttpResponse(content_type='application/pdf;') diff --git a/sapl/static/sapl/css/header-relatorio.css b/sapl/static/sapl/css/header-relatorio.css index 31dc2b0f4..65f6f629d 100644 --- a/sapl/static/sapl/css/header-relatorio.css +++ b/sapl/static/sapl/css/header-relatorio.css @@ -44,8 +44,19 @@ html body section dt img { max-width:80px; margin-left: 20px; margin-left: 50px; + } h3 { - font-size: 12pt; + font-size: 10pt; color: #6e6e6e; +} +ul { + padding: 0; + list-style: none; + margin-top:10px; +} + +html body section dt img { + max-width:80px; + margin-left: 20px; } \ No newline at end of file diff --git a/sapl/templates/relatorios/header_ata.html b/sapl/templates/relatorios/header_ata.html index e5351eb28..494d2c60b 100644 --- a/sapl/templates/relatorios/header_ata.html +++ b/sapl/templates/relatorios/header_ata.html @@ -1,7 +1,6 @@ {% load common_tags %} {% load render_bundle from webpack_loader %} {% load webpack_static from webpack_loader %} - {% load static %} @@ -22,7 +21,6 @@ diff --git a/sapl/templates/relatorios/relatorio_ata.html b/sapl/templates/relatorios/relatorio_ata.html index c80cfd110..2bf19e55e 100644 --- a/sapl/templates/relatorios/relatorio_ata.html +++ b/sapl/templates/relatorios/relatorio_ata.html @@ -49,8 +49,6 @@ {% include 'sessao/blocos_ata/oradores_explicacoes.html' %}
- - {{texto_assinatura}}