Browse Source

Atualiza template de relatórios e ofícios

pull/163/head
Sesostris Vieira 2 years ago
parent
commit
bb7b9e83ec
  1. 3
      sigi/templates/pdf/base.html
  2. 22
      sigi/templates/pdf/base_report.html

3
sigi/templates/pdf/base.html

@ -21,6 +21,9 @@
{% endblock %}
{% block extra_page_settings %}{% endblock extra_page_settings %}
}
body {
margin: 0;
}
h1 { bookmark-level: 1 }
h2 { bookmark-level: 2 }
h3 { bookmark-level: 3 }

22
sigi/templates/pdf/base_report.html

@ -18,19 +18,16 @@ header {
text-align: left;
}
header p {
margin: 5px;
margin: 0;
}
footer {
text-align: center;
text-align: right;
}
footer img {
width: 300px;
width: {% if "landscape" in pagesize %}257{% else %}170{% endif %}mm;
}
footer p {
margin-bottom: 3px;
}
.report_name {
font-size: 1.6em;
}
@ -70,18 +67,19 @@ ul {
{% endblock extra_style %}
{% block body_content %}
<header>{% block header %}
<header>
{% block header %}
<p>{% trans 'SENADO FEDERAL' %}</p>
<p>{% trans 'Instituto Legislativo Brasileiro - ILB' %}</p>
<p>{% trans "INTERLEGIS" %}</p>
<p class="report_name">{% block report_name %}{{ title|upper }}{% endblock report_name %}</p>{% endblock header %}
<p>{% trans 'Instituto Legislativo Brasileiro - ILB - Interlegis' %}</p>
<p class="report_name">{% block report_name %}{{ title|upper }}{% endblock report_name %}</p>
{% endblock header %}
</header>
{% spaceless %}
<footer>
{% block footer %}
<p>{% trans 'Emitido em ' %}{% now "DATETIME_FORMAT" %}</p>
<img src="{% static 'img/logos_rodape.png' %}" />
{% 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