Skip to content

Commit

Permalink
Conserta bug em relatórios com emenda longa. (#3674)
Browse files Browse the repository at this point in the history
Conserta bug em relatórios com emenda larga
  • Loading branch information
edwardoliveira committed Sep 11, 2023
1 parent 4cf5aac commit 27d2595
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
5 changes: 5 additions & 0 deletions sapl/static/sapl/css/relatorio.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ fieldset {


table {
table-layout: fixed;
max-width: 520px;
}
table.grayTable {
Expand All @@ -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;
Expand Down
9 changes: 7 additions & 2 deletions sapl/templates/relatorios/relatorio_pauta_sessao.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,25 @@

{% block content %}
<style>
table {
width:100%;
table-layout: fixed;
}
table.grayTable tbody td {
font-size: 10px;
max-width: 80px;
overflow-wrap: break-word;
word-wrap: break-word;
text-align: initial;
text-align: justify;
vertical-align: top;
}
</style>
<h2 class="gray-title">Identificação Básica</h2>
{% for b in basica %}
{{ b }}<br/>
{% endfor %}
<h2 class="gray-title">Correspondências</h2>
<table class="grayTable">
<table style="table grayTable">
<tbody>
{% for c in correspondencias%}
<tr>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

{% load common_tags %}
{% if materias_ordem %}
<fieldset>
Expand Down
6 changes: 3 additions & 3 deletions sapl/templates/sessao/pauta_sessao_detail.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "crud/detail.html" %}
{% load i18n %}
{% load crispy_forms_tags %}
{% load crispy_forms_tags common_tags%}

{% block base_content %}
<div align=right><a href="{% url 'sapl.sessao:pauta_sessao_detail' object.pk %}pdf"> Impressão PDF</a></li></div>
Expand Down Expand Up @@ -64,7 +64,7 @@
<b>Autor{{ m.autor|length|pluralize:"es" }}</b>: {{ m.autor|join:', ' }}
</td>
<td style="width:60%;">
{{m.ementa|safe}}
{{m.ementa|dont_break_out}}
{% if m.observacao %}<br><br>Obs.: {{m.observacao}} {% endif %}
</td>
<td style="width:20%;">{{m.situacao|linebreaksbr|safe}}</td>
Expand All @@ -89,7 +89,7 @@
<b>Autor{{ m.autor|length|pluralize:"es" }}</b>: {{ m.autor|join:', ' }}
</td>
<td style="width:60%;">
{{m.ementa|safe}}
{{m.ementa|dont_break_out}}
{% if m.observacao %}<br><br>Obs.: {{m.observacao}} {% endif %}
</td>
<td style="width:20%;">{{m.situacao|linebreaksbr|safe}}</td>
Expand Down

0 comments on commit 27d2595

Please sign in to comment.