From d0d4a8948b1859f9fab6207813438fd13bab3b47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ses=C3=B3stris=20Vieira?= Date: Mon, 3 Jun 2024 10:01:03 -0300 Subject: [PATCH] =?UTF-8?q?Melhorias=20na=20gera=C3=A7=C3=A3o=20de=20relat?= =?UTF-8?q?=C3=B3rios?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../utils/templates/utils/report/report.html | 67 ++++++++++--------- sigi/templates/pdf/base_report.html | 2 + 2 files changed, 39 insertions(+), 30 deletions(-) diff --git a/sigi/apps/utils/templates/utils/report/report.html b/sigi/apps/utils/templates/utils/report/report.html index f667878..2c5aaf4 100644 --- a/sigi/apps/utils/templates/utils/report/report.html +++ b/sigi/apps/utils/templates/utils/report/report.html @@ -26,44 +26,51 @@ {% endblock %} {% block content %} - {% if form %} -
-
-
-
- {% block filterform %}{{ form }}{% endblock filterform %} -
-
- -
- - print - -
    -
  • -
  • -
+ {% block form %} + {% if form %} + +
+
+
+ {% block filterform %}{{ form }}{% endblock filterform %} +
+
+ +
+ + print + +
    +
  • +
  • +
+
+ + {% else %} + - - {% else %} - - {% endif %} - {% include "utils/report/report_items_snippet.html" with mode="html" %} + {% endif %} + {% endblock form %} + {% block data %} + {% include "utils/report/report_items_snippet.html" with mode="html" %} + {% endblock data %} {% endblock %} {% block footer %} {{ block.super }} + {% if form %} + {{ form.media }} + {% endif %}