From 887de1952890b778c0776925cdfd51dc085b539f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Rodrigues?= Date: Tue, 11 Feb 2020 15:43:23 -0300 Subject: [PATCH] Refatorar template --- .../RelatorioMateriasPorAutor_filter.html | 74 +++++++++---------- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/sapl/templates/base/RelatorioMateriasPorAutor_filter.html b/sapl/templates/base/RelatorioMateriasPorAutor_filter.html index e3591191b..2690b5d4e 100644 --- a/sapl/templates/base/RelatorioMateriasPorAutor_filter.html +++ b/sapl/templates/base/RelatorioMateriasPorAutor_filter.html @@ -15,11 +15,14 @@ PARÂMETROS DE PESQUISA:
 Autor: {{ autor }}
 Tipo de matéria: {{ tipo }}
-  Data de apresentação: {{periodo}}


- {% if object_list %} +  Data de apresentação: {{ periodo }}


+ + {% if materias_resultado %} - + + + @@ -33,44 +36,41 @@ {% endfor %} - - {% for materia in object_list %} - {% ifchanged materia.autoria_set.first.autor %} - - - - - - - - - - - {% endifchanged %} - - - - - - - - + + + + + + + + + + + {% for materia in materias_resultado %} + + + + + + + {% endfor %}
QUADRO GERAL
QUADRO GERAL
Tipo Matéria Quantidade
Autor: {{ materia.autoria_set.first.autor }}
MatériaEmentaCoautor(es)
- {{materia.tipo.sigla}} {{materia.numero}}/{{materia.ano}} - {% autoescape off %}{{materia.ementa}}
{{materia.observacao}}{% endautoescape %}
- {% if materia.autoria_set.first != materia.autoria_set.last %} - {% for autor in materia.autoria_set.all %} - {% if not autor.primeiro_autor %} - {{ autor.autor }}
- {% endif %} - {% endfor %} - {% endif %} -
MatériaEmentaAutor(es)
+ + {{materia.tipo.sigla}} {{materia.numero}}/{{materia.ano}} + + {% autoescape off %}{{materia.ementa}}
{{materia.observacao}}{% endautoescape %}
+ {% for autor in materia.autoria_set.all %} + {% if not autor.primeiro_autor %} + {{ autor.autor }}
+ {% else %} + {{ autor.autor }}
+ {% endif %} + {% endfor %} +
+
{% else %}

Não foram encontradas matérias com os parâmetros pesquisados.

{% endif %} - {% endif %} - {% endblock base_content %}