Browse Source

Ajusta rodapé dos relatórios

pull/169/head
Sesóstris Vieira 1 year ago
parent
commit
9a0f588e8f
  1. 5
      sigi/templates/pdf/base.html
  2. 14
      sigi/templates/pdf/base_report.html

5
sigi/templates/pdf/base.html

@ -16,6 +16,7 @@
@top-center { content: element(header); }
{% endblock %}
{% block page-footer-settings %}
@bottom-left { content: element(footerLeft); }
@bottom-center { content: element(footer); }
@bottom-right { content: "{% trans "Página: " %}" counter(page); }
{% endblock %}
@ -33,6 +34,10 @@
@media print {
header {position: running(header);}
footer {position: running(footer);}
.footerLeft {
text-align: center;
position: running(footerLeft);
}
}
body {
font-family: "Helvetica", "Arial", "sans-serif";

14
sigi/templates/pdf/base_report.html

@ -25,11 +25,12 @@ footer {
text-align: right;
}
footer img {
width: {% if "landscape" in pagesize %}257{% else %}170{% endif %}mm;
width: 105mm;
}
.report_name {
font-size: 1.6em;
margin-top: 5px;
}
table {
@ -70,6 +71,7 @@ ul {
{% endblock extra_style %}
{% block body_content %}
{% spaceless %}
<header>
{% block header %}
<p>{% trans 'SENADO FEDERAL' %}</p>
@ -77,12 +79,16 @@ ul {
<p class="report_name">{% block report_name %}{{ title|upper }}{% endblock report_name %}</p>
{% endblock header %}
</header>
{% spaceless %}
<div class="footerLeft">
{% block footer_text %}
{% trans 'Emitido em' %}
<br/>
{% now "DATETIME_FORMAT" %}
{% endblock footer_text %}
</div>
<footer>
{% block footer %}
{% block footer_image %}<img src="{% static 'img/logos_rodape.png' %}" />{% endblock footer_image %}
{% block footer_text %}<p>{% trans 'Emitido em ' %}{% now "DATETIME_FORMAT" %}</p>{% endblock footer_text %}
{% endblock footer %}
</footer>
{% endspaceless %}

Loading…
Cancel
Save