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

14
sigi/templates/pdf/base_report.html

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

Loading…
Cancel
Save