Browse Source

Ajuste no cabeçalho e rodapé dos relatórios

pull/163/head
Sesostris Vieira 2 years ago
parent
commit
ae634c6800
  1. BIN
      sigi/static/img/logos_rodape.png
  2. 1
      sigi/templates/pdf/base.html
  3. 22
      sigi/templates/pdf/base_report.html

BIN
sigi/static/img/logos_rodape.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

1
sigi/templates/pdf/base.html

@ -12,7 +12,6 @@
font-family: "Helvetica, Arial, sans-serif";
font-size: 10px;
{% block page-header-settings %}
@top-right { content: url("{% static 'img/logo-interlegis.png' %}");}
@top-left {content: url("{% static 'img/logo-senado.png' %}");}
@top-center { content: element(header); }
{% endblock %}

22
sigi/templates/pdf/base_report.html

@ -15,11 +15,22 @@ h6 {font-size: 1.1em;}
header {
font-size: 1.4em;
font-weight: bold;
text-align: center;
text-align: left;
}
header p {
margin: 5px;
}
footer {
text-align: center;
}
footer img {
width: 300px;
}
footer p {
margin-bottom: 3px;
}
.report_name {
font-size: 1.6em;
}
@ -66,9 +77,14 @@ ul {
<p class="report_name">{% block report_name %}{{ title|upper }}{% endblock report_name %}</p>{% endblock header %}
</header>
<footer>{% block footer %}
<p>{% trans 'Emitido em ' %}{% now "DATETIME_FORMAT" %}</p>{% endblock footer %}
{% spaceless %}
<footer>
{% block footer %}
<p>{% trans 'Emitido em ' %}{% now "DATETIME_FORMAT" %}</p>
<img src="{% static 'img/logos_rodape.png' %}" />
{% endblock footer %}
</footer>
{% endspaceless %}
{% block main_content %}{% endblock main_content %}
{% endblock body_content %}
Loading…
Cancel
Save