Browse Source

Melhorias na geração de relatórios

dependabot/pip/requirements/djangorestframework-3.15.2
Sesóstris Vieira 7 months ago
parent
commit
d0d4a8948b
  1. 7
      sigi/apps/utils/templates/utils/report/report.html
  2. 2
      sigi/templates/pdf/base_report.html

7
sigi/apps/utils/templates/utils/report/report.html

@ -26,6 +26,7 @@
{% endblock %} {% endblock %}
{% block content %} {% block content %}
{% block form %}
{% if form %} {% if form %}
<form class="row"> <form class="row">
<div class="col s12"> <div class="col s12">
@ -59,11 +60,17 @@
</ul> </ul>
</div> </div>
{% endif %} {% endif %}
{% endblock form %}
{% block data %}
{% include "utils/report/report_items_snippet.html" with mode="html" %} {% include "utils/report/report_items_snippet.html" with mode="html" %}
{% endblock data %}
{% endblock %} {% endblock %}
{% block footer %} {% block footer %}
{{ block.super }} {{ block.super }}
{% if form %}
{{ form.media }}
{% endif %}
<script> <script>
$(document).ready(function(){ $(document).ready(function(){
M.FloatingActionButton.init($('.fixed-action-btn'), {hoverEnabled: false}); M.FloatingActionButton.init($('.fixed-action-btn'), {hoverEnabled: false});

2
sigi/templates/pdf/base_report.html

@ -43,6 +43,8 @@ th,td {
th { th {
background-color: #007433; background-color: #007433;
color: white; color: white;
font-weight: 600;
text-transform: uppercase;
} }
tr:nth-child(even) { tr:nth-child(even) {
background-color: #d2d2d2; background-color: #d2d2d2;

Loading…
Cancel
Save