diff --git a/sapl/templates/relatorios/relatorio_materias_por_autor.html b/sapl/templates/relatorios/relatorio_materias_por_autor.html index d3e7a9659..34499fc1b 100644 --- a/sapl/templates/relatorios/relatorio_materias_por_autor.html +++ b/sapl/templates/relatorios/relatorio_materias_por_autor.html @@ -5,17 +5,17 @@ {% block content %}

Matérias por Autor

- - PARÂMETROS DE PESQUISA:
-  Autor: {{ autor }}
-  Tipo de matéria: {{ tipo }}
-  Data de apresentação: {{periodo}}


- - {% if object_list|length %} - - - - + PARÂMETROS DE PESQUISA:
+  Autor: {{ autor }}
+  Tipo de matéria: {{ tipo }}
+  Data de apresentação: {{periodo}}


+ + {% if materias_resultado|length %} +
QUADRO GERAL
+ + + + @@ -30,35 +30,26 @@ {% endfor %}
QUADRO GERAL
Tipo Matéria Quantidade
-
-
- {% if object_list|length %} - - {% for materia in object_list %} - {% ifchanged materia.autoria_set.first.autor %} -
- Autor: {{ materia.autoria_set.first.autor }} -
-
- {% endifchanged %} - -
- - Matéria: {{materia.tipo.descricao}} {{materia.numero}}/{{materia.ano}} -
- Ementa: {{materia.ementa}} -
- Coautor(es): {% 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 %} -
-
- - +

+ {% if materias_resultado|length %} + {% for materia in materias_resultado %} + Matéria: {{materia.tipo.descricao}} {{materia.numero}}/{{materia.ano}} +
+ Ementa: +
+ {{materia.ementa}} +
+ Autor(es): +
+ {% for autor in materia.autoria_set.all %} + {% if not autor.primeiro_autor %} + {{ autor.autor }}
+ {% else %} + {{ autor.autor }}
+ {% endif %} + {% endfor %} +
+
{% endfor %} {% endif %}