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 %} {% endblock %}
{% block extra_page_settings %}{% endblock extra_page_settings %} {% block extra_page_settings %}{% endblock extra_page_settings %}
} }
body {
margin: 0;
}
h1 { bookmark-level: 1 } h1 { bookmark-level: 1 }
h2 { bookmark-level: 2 } h2 { bookmark-level: 2 }
h3 { bookmark-level: 3 } h3 { bookmark-level: 3 }

22
sigi/templates/pdf/base_report.html

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