From 27d2595ada2082ac13d69ebddd3eafcf6c8d5f0d Mon Sep 17 00:00:00 2001 From: Edward <9326037+edwardoliveira@users.noreply.github.com> Date: Sun, 10 Sep 2023 21:26:27 -0300 Subject: [PATCH] =?UTF-8?q?Conserta=20bug=20em=20relat=C3=B3rios=20com=20e?= =?UTF-8?q?menda=20longa.=20(#3674)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Conserta bug em relatórios com emenda larga --- sapl/static/sapl/css/relatorio.css | 5 +++++ sapl/templates/relatorios/relatorio_pauta_sessao.html | 9 +++++++-- .../sessao/blocos_resumo/materias_ordem_dia.html | 1 - sapl/templates/sessao/pauta_sessao_detail.html | 6 +++--- 4 files changed, 15 insertions(+), 6 deletions(-) diff --git a/sapl/static/sapl/css/relatorio.css b/sapl/static/sapl/css/relatorio.css index c3489dfe2..0dcbd8061 100644 --- a/sapl/static/sapl/css/relatorio.css +++ b/sapl/static/sapl/css/relatorio.css @@ -58,6 +58,7 @@ fieldset { table { + table-layout: fixed; max-width: 520px; } table.grayTable { @@ -69,6 +70,10 @@ table.grayTable { table.grayTable td, table.grayTable th { border: 1px solid #000000; padding: 5px; + overflow-wrap: break-word; + word-wrap: break-word; + text-align: justify; + vertical-align: top; } table.grayTable tbody td { font-size: 10px; diff --git a/sapl/templates/relatorios/relatorio_pauta_sessao.html b/sapl/templates/relatorios/relatorio_pauta_sessao.html index a0c531e40..70fd30e52 100644 --- a/sapl/templates/relatorios/relatorio_pauta_sessao.html +++ b/sapl/templates/relatorios/relatorio_pauta_sessao.html @@ -6,12 +6,17 @@ {% block content %}

Identificação Básica

@@ -19,7 +24,7 @@ {{ b }}
{% endfor %}

Correspondências

- +
{% for c in correspondencias%} diff --git a/sapl/templates/sessao/blocos_resumo/materias_ordem_dia.html b/sapl/templates/sessao/blocos_resumo/materias_ordem_dia.html index ecd454693..bc7e57635 100644 --- a/sapl/templates/sessao/blocos_resumo/materias_ordem_dia.html +++ b/sapl/templates/sessao/blocos_resumo/materias_ordem_dia.html @@ -1,4 +1,3 @@ - {% load common_tags %} {% if materias_ordem %}
diff --git a/sapl/templates/sessao/pauta_sessao_detail.html b/sapl/templates/sessao/pauta_sessao_detail.html index ce0ed05f1..b4f0ffb44 100644 --- a/sapl/templates/sessao/pauta_sessao_detail.html +++ b/sapl/templates/sessao/pauta_sessao_detail.html @@ -1,6 +1,6 @@ {% extends "crud/detail.html" %} {% load i18n %} -{% load crispy_forms_tags %} +{% load crispy_forms_tags common_tags%} {% block base_content %}
Impressão PDF
@@ -64,7 +64,7 @@ Autor{{ m.autor|length|pluralize:"es" }}: {{ m.autor|join:', ' }}
@@ -89,7 +89,7 @@ Autor{{ m.autor|length|pluralize:"es" }}: {{ m.autor|join:', ' }}
- {{m.ementa|safe}} + {{m.ementa|dont_break_out}} {% if m.observacao %}

Obs.: {{m.observacao}} {% endif %}
{{m.situacao|linebreaksbr|safe}} - {{m.ementa|safe}} + {{m.ementa|dont_break_out}} {% if m.observacao %}

Obs.: {{m.observacao}} {% endif %}
{{m.situacao|linebreaksbr|safe}}