Browse Source

removendo partes desnecessarias do codigo como o None do get e os css dos relatorios

pull/2895/head
ricardocanela 6 years ago
parent
commit
53829ba252
  1. 4
      sapl/base/views.py
  2. 32
      sapl/templates/relatorios/relatorio_ata.html
  3. 35
      sapl/templates/relatorios/relatorio_atas.html
  4. 35
      sapl/templates/relatorios/relatorio_audiencia.html
  5. 35
      sapl/templates/relatorios/relatorio_doc_administrativos.html
  6. 35
      sapl/templates/relatorios/relatorio_documento_acessorio.html
  7. 35
      sapl/templates/relatorios/relatorio_estatisticas_acesso_normas.html
  8. 35
      sapl/templates/relatorios/relatorio_fim_prazo_tramitacao.html
  9. 35
      sapl/templates/relatorios/relatorio_historico_tramitacao.html
  10. 35
      sapl/templates/relatorios/relatorio_historico_tramitacao_adm.html
  11. 35
      sapl/templates/relatorios/relatorio_materias_em_tramitacao.html
  12. 35
      sapl/templates/relatorios/relatorio_materias_por_ano_autor.html
  13. 35
      sapl/templates/relatorios/relatorio_materias_por_autor.html
  14. 35
      sapl/templates/relatorios/relatorio_normas_mes.html
  15. 35
      sapl/templates/relatorios/relatorio_normas_por_autor.html
  16. 35
      sapl/templates/relatorios/relatorio_normas_vigencia.html
  17. 35
      sapl/templates/relatorios/relatorio_presenca_sessao.html
  18. 35
      sapl/templates/relatorios/relatorio_reuniao.html
  19. 35
      sapl/templates/relatorios/relatorio_sessao_plenaria.html

4
sapl/base/views.py

@ -317,7 +317,7 @@ class RelatorioMixin:
def get(self, request, *args, **kwargs): def get(self, request, *args, **kwargs):
super(RelatorioMixin, self).get(request) super(RelatorioMixin, self).get(request)
is_relatorio = request.GET.get('relatorio', None) is_relatorio = request.GET.get('relatorio')
context = self.get_context_data(filter=self.filterset) context = self.get_context_data(filter=self.filterset)
if is_relatorio: if is_relatorio:
@ -1066,7 +1066,7 @@ class EstatisticasAcessoNormas(TemplateView):
context['normas_mes'] = normas_mes context['normas_mes'] = normas_mes
is_relatorio = request.GET.get('relatorio', None) is_relatorio = request.GET.get('relatorio')
context['show_results'] = show_results_filter_set( context['show_results'] = show_results_filter_set(
self.request.GET.copy()) self.request.GET.copy())

32
sapl/templates/relatorios/relatorio_ata.html

@ -1,38 +1,6 @@
{% load common_tags %} {% load common_tags %}
{% load static %} {% load static %}
<head> <head>
<style>
@page{
@bottom-right {
content: "Página" counter(page);
height: 3cm;
font-size: 8pt;
}
@bottom-center {
border-top: 1px solid black;
font-size: 8pt;
height: 1cm;
content: "{{rodape|safe}}";
font-style:italic;
}
@bottom-left {
content: "{{data}}";
height: 3cm;
font-size: 8pt;
}
@top-center {
content: string(title);
}
header {
width: 0;
height: 0;
visibility: hidden;
string-set: title content();
}
}
</style>
<link rel="stylesheet" href="{% static 'sapl/css/relatorio.css'%}"> <link rel="stylesheet" href="{% static 'sapl/css/relatorio.css'%}">
</head> </head>

35
sapl/templates/relatorios/relatorio_atas.html

@ -4,41 +4,6 @@
<head> <head>
<style>
@page{
margin-top: 4.5cm;
size: A4 portrait;
@bottom-right {
content: "Página" counter(page);
height: 3cm;
font-size: 8pt;
}
@bottom-center {
border-top: 1px solid black;
font-size: 8pt;
height: 1cm;
content: "{{rodape|safe}}";
font-style:italic;
}
@bottom-left {
content: "{{data}}";
height: 3cm;
font-size: 8pt;
}
@top-center {
content: string(title);
}
header {
width: 0;
height: 0;
visibility: hidden;
string-set: title content();
}
}
</style>
<link rel="stylesheet" href="{% static '/sapl/css/relatorio.css'%}"> <link rel="stylesheet" href="{% static '/sapl/css/relatorio.css'%}">
</head> </head>

35
sapl/templates/relatorios/relatorio_audiencia.html

@ -4,41 +4,6 @@
<head> <head>
<style>
@page{
margin-top: 4.5cm;
size: A4 portrait;
@bottom-right {
content: "Página" counter(page);
height: 3cm;
font-size: 8pt;
}
@bottom-center {
border-top: 1px solid black;
font-size: 8pt;
height: 1cm;
content: "{{rodape|safe}}";
font-style:italic;
}
@bottom-left {
content: "{{data}}";
height: 3cm;
font-size: 8pt;
}
@top-center {
content: string(title);
}
header {
width: 0;
height: 0;
visibility: hidden;
string-set: title content();
}
}
</style>
<link rel="stylesheet" href="{% static '/sapl/css/relatorio.css'%}"> <link rel="stylesheet" href="{% static '/sapl/css/relatorio.css'%}">
</head> </head>

35
sapl/templates/relatorios/relatorio_doc_administrativos.html

@ -3,41 +3,6 @@
{% load crispy_forms_tags staticfiles %} {% load crispy_forms_tags staticfiles %}
<head> <head>
<style>
@page{
margin-top: 5cm;
size: A4 portrait;
@bottom-right {
content: "Página" counter(page);
height: 3cm;
font-size: 8pt;
}
@bottom-center {
border-top: 1px solid black;
font-size: 8pt;
height: 1cm;
content: "{{rodape|safe}}";
font-style:italic;
}
@bottom-left {
content: "{{data}}";
height: 3cm;
font-size: 8pt;
}
@top-center {
content: string(title);
}
header {
width: 0;
height: 0;
visibility: hidden;
string-set: title content();
}
}
</style>
<link rel="stylesheet" href="{% static '/sapl/css/relatorio.css'%}"> <link rel="stylesheet" href="{% static '/sapl/css/relatorio.css'%}">
</head> </head>

35
sapl/templates/relatorios/relatorio_documento_acessorio.html

@ -4,41 +4,6 @@
<head> <head>
<style>
@page{
margin-top: 4.5cm;
size: A4 portrait;
@bottom-right {
content: "Página" counter(page);
height: 3cm;
font-size: 8pt;
}
@bottom-center {
border-top: 1px solid black;
font-size: 8pt;
height: 1cm;
content: "{{rodape|safe}}";
font-style:italic;
}
@bottom-left {
content: "{{data}}";
height: 3cm;
font-size: 8pt;
}
@top-center {
content: string(title);
}
header {
width: 0;
height: 0;
visibility: hidden;
string-set: title content();
}
}
</style>
<link rel="stylesheet" href="{% static '/sapl/css/relatorio.css'%}"> <link rel="stylesheet" href="{% static '/sapl/css/relatorio.css'%}">
</head> </head>

35
sapl/templates/relatorios/relatorio_estatisticas_acesso_normas.html

@ -4,41 +4,6 @@
<head> <head>
<style>
@page{
margin-top: 4.5cm;
size: A4 portrait;
@bottom-right {
content: "Página" counter(page);
height: 3cm;
font-size: 8pt;
}
@bottom-center {
border-top: 1px solid black;
font-size: 8pt;
height: 1cm;
content: "{{rodape|safe}}";
font-style:italic;
}
@bottom-left {
content: "{{data}}";
height: 3cm;
font-size: 8pt;
}
@top-center {
content: string(title);
}
header {
width: 0;
height: 0;
visibility: hidden;
string-set: title content();
}
}
</style>
<link rel="stylesheet" href="{% static '/sapl/css/relatorio.css'%}"> <link rel="stylesheet" href="{% static '/sapl/css/relatorio.css'%}">
</head> </head>

35
sapl/templates/relatorios/relatorio_fim_prazo_tramitacao.html

@ -4,41 +4,6 @@
<head> <head>
<style>
@page{
margin-top: 4.5cm;
size: A4 portrait;
@bottom-right {
content: "Página" counter(page);
height: 3cm;
font-size: 8pt;
}
@bottom-center {
border-top: 1px solid black;
font-size: 8pt;
height: 1cm;
content: "{{rodape|safe}}";
font-style:italic;
}
@bottom-left {
content: "{{data}}";
height: 3cm;
font-size: 8pt;
}
@top-center {
content: string(title);
}
header {
width: 0;
height: 0;
visibility: hidden;
string-set: title content();
}
}
</style>
<link rel="stylesheet" href="{% static '/sapl/css/relatorio.css'%}"> <link rel="stylesheet" href="{% static '/sapl/css/relatorio.css'%}">
</head> </head>

35
sapl/templates/relatorios/relatorio_historico_tramitacao.html

@ -4,41 +4,6 @@
<head> <head>
<style>
@page{
margin-top: 4.5cm;
size: A4 portrait;
@bottom-right {
content: "Página" counter(page);
height: 3cm;
font-size: 8pt;
}
@bottom-center {
border-top: 1px solid black;
font-size: 8pt;
height: 1cm;
content: "{{rodape|safe}}";
font-style:italic;
}
@bottom-left {
content: "{{data}}";
height: 3cm;
font-size: 8pt;
}
@top-center {
content: string(title);
}
header {
width: 0;
height: 0;
visibility: hidden;
string-set: title content();
}
}
</style>
<link rel="stylesheet" href="{% static '/sapl/css/relatorio.css'%}"> <link rel="stylesheet" href="{% static '/sapl/css/relatorio.css'%}">
</head> </head>

35
sapl/templates/relatorios/relatorio_historico_tramitacao_adm.html

@ -4,41 +4,6 @@
<head> <head>
<style>
@page{
margin-top: 4.5cm;
size: A4 portrait;
@bottom-right {
content: "Página" counter(page);
height: 3cm;
font-size: 8pt;
}
@bottom-center {
border-top: 1px solid black;
font-size: 8pt;
height: 1cm;
content: "{{rodape|safe}}";
font-style:italic;
}
@bottom-left {
content: "{{data}}";
height: 3cm;
font-size: 8pt;
}
@top-center {
content: string(title);
}
header {
width: 0;
height: 0;
visibility: hidden;
string-set: title content();
}
}
</style>
<link rel="stylesheet" href="{% static '/sapl/css/relatorio.css'%}"> <link rel="stylesheet" href="{% static '/sapl/css/relatorio.css'%}">
</head> </head>

35
sapl/templates/relatorios/relatorio_materias_em_tramitacao.html

@ -4,41 +4,6 @@
<head> <head>
<style>
@page{
margin-top: 4.5cm;
size: A4 portrait;
@bottom-right {
content: "Página" counter(page);
height: 3cm;
font-size: 8pt;
}
@bottom-center {
border-top: 1px solid black;
font-size: 8pt;
height: 1cm;
content: "{{rodape|safe}}";
font-style:italic;
}
@bottom-left {
content: "{{data}}";
height: 3cm;
font-size: 8pt;
}
@top-center {
content: string(title);
}
header {
width: 0;
height: 0;
visibility: hidden;
string-set: title content();
}
}
</style>
<link rel="stylesheet" href="{% static '/sapl/css/relatorio.css'%}"> <link rel="stylesheet" href="{% static '/sapl/css/relatorio.css'%}">
</head> </head>

35
sapl/templates/relatorios/relatorio_materias_por_ano_autor.html

@ -4,41 +4,6 @@
<head> <head>
<style>
@page{
margin-top: 4.5cm;
size: A4 portrait;
@bottom-right {
content: "Página" counter(page);
height: 3cm;
font-size: 8pt;
}
@bottom-center {
border-top: 1px solid black;
font-size: 8pt;
height: 1cm;
content: "{{rodape|safe}}";
font-style:italic;
}
@bottom-left {
content: "{{data}}";
height: 3cm;
font-size: 8pt;
}
@top-center {
content: string(title);
}
header {
width: 0;
height: 0;
visibility: hidden;
string-set: title content();
}
}
</style>
<link rel="stylesheet" href="{% static '/sapl/css/relatorio.css'%}"> <link rel="stylesheet" href="{% static '/sapl/css/relatorio.css'%}">
</head> </head>

35
sapl/templates/relatorios/relatorio_materias_por_autor.html

@ -4,41 +4,6 @@
<head> <head>
<style>
@page{
margin-top: 4.5cm;
size: A4 portrait;
@bottom-right {
content: "Página" counter(page);
height: 3cm;
font-size: 8pt;
}
@bottom-center {
border-top: 1px solid black;
font-size: 8pt;
height: 1cm;
content: "{{rodape|safe}}";
font-style:italic;
}
@bottom-left {
content: "{{data}}";
height: 3cm;
font-size: 8pt;
}
@top-center {
content: string(title);
}
header {
width: 0;
height: 0;
visibility: hidden;
string-set: title content();
}
}
</style>
<link rel="stylesheet" href="{% static '/sapl/css/relatorio.css'%}"> <link rel="stylesheet" href="{% static '/sapl/css/relatorio.css'%}">
</head> </head>

35
sapl/templates/relatorios/relatorio_normas_mes.html

@ -4,41 +4,6 @@
<head> <head>
<style>
@page{
margin-top: 4.5cm;
size: A4 portrait;
@bottom-right {
content: "Página" counter(page);
height: 3cm;
font-size: 8pt;
}
@bottom-center {
border-top: 1px solid black;
font-size: 8pt;
height: 1cm;
content: "{{rodape|safe}}";
font-style:italic;
}
@bottom-left {
content: "{{data}}";
height: 3cm;
font-size: 8pt;
}
@top-center {
content: string(title);
}
header {
width: 0;
height: 0;
visibility: hidden;
string-set: title content();
}
}
</style>
<link rel="stylesheet" href="{% static '/sapl/css/relatorio.css'%}"> <link rel="stylesheet" href="{% static '/sapl/css/relatorio.css'%}">
</head> </head>

35
sapl/templates/relatorios/relatorio_normas_por_autor.html

@ -4,41 +4,6 @@
<head> <head>
<style>
@page{
margin-top: 4.5cm;
size: A4 portrait;
@bottom-right {
content: "Página" counter(page);
height: 3cm;
font-size: 8pt;
}
@bottom-center {
border-top: 1px solid black;
font-size: 8pt;
height: 1cm;
content: "{{rodape|safe}}";
font-style:italic;
}
@bottom-left {
content: "{{data}}";
height: 3cm;
font-size: 8pt;
}
@top-center {
content: string(title);
}
header {
width: 0;
height: 0;
visibility: hidden;
string-set: title content();
}
}
</style>
<link rel="stylesheet" href="{% static '/sapl/css/relatorio.css'%}"> <link rel="stylesheet" href="{% static '/sapl/css/relatorio.css'%}">
</head> </head>

35
sapl/templates/relatorios/relatorio_normas_vigencia.html

@ -4,41 +4,6 @@
<head> <head>
<style>
@page{
margin-top: 4.5cm;
size: A4 portrait;
@bottom-right {
content: "Página" counter(page);
height: 3cm;
font-size: 8pt;
}
@bottom-center {
border-top: 1px solid black;
font-size: 8pt;
height: 1cm;
content: "{{rodape|safe}}";
font-style:italic;
}
@bottom-left {
content: "{{data}}";
height: 3cm;
font-size: 8pt;
}
@top-center {
content: string(title);
}
header {
width: 0;
height: 0;
visibility: hidden;
string-set: title content();
}
}
</style>
<link rel="stylesheet" href="{% static '/sapl/css/relatorio.css'%}"> <link rel="stylesheet" href="{% static '/sapl/css/relatorio.css'%}">
</head> </head>

35
sapl/templates/relatorios/relatorio_presenca_sessao.html

@ -4,41 +4,6 @@
<head> <head>
<style>
@page{
margin-top: 4.5cm;
size: A4 portrait;
@bottom-right {
content: "Página" counter(page);
height: 3cm;
font-size: 8pt;
}
@bottom-center {
border-top: 1px solid black;
font-size: 8pt;
height: 1cm;
content: "{{rodape|safe}}";
font-style:italic;
}
@bottom-left {
content: "{{data}}";
height: 3cm;
font-size: 8pt;
}
@top-center {
content: string(title);
}
header {
width: 0;
height: 0;
visibility: hidden;
string-set: title content();
}
}
</style>
<link rel="stylesheet" href="{% static '/sapl/css/relatorio.css'%}"> <link rel="stylesheet" href="{% static '/sapl/css/relatorio.css'%}">
</head> </head>

35
sapl/templates/relatorios/relatorio_reuniao.html

@ -4,41 +4,6 @@
<head> <head>
<style>
@page{
margin-top: 4.5cm;
size: A4 portrait;
@bottom-right {
content: "Página" counter(page);
height: 3cm;
font-size: 8pt;
}
@bottom-center {
border-top: 1px solid black;
font-size: 8pt;
height: 1cm;
content: "{{rodape|safe}}";
font-style:italic;
}
@bottom-left {
content: "{{data}}";
height: 3cm;
font-size: 8pt;
}
@top-center {
content: string(title);
}
header {
width: 0;
height: 0;
visibility: hidden;
string-set: title content();
}
}
</style>
<link rel="stylesheet" href="{% static '/sapl/css/relatorio.css'%}"> <link rel="stylesheet" href="{% static '/sapl/css/relatorio.css'%}">
</head> </head>

35
sapl/templates/relatorios/relatorio_sessao_plenaria.html

@ -5,41 +5,6 @@
<html lang="pt-br"> <html lang="pt-br">
<head> <head>
<style>
@page{
margin-top: 5cm;
size: A4 portrait;
@bottom-right {
content: "Página" counter(page);
height: 3cm;
font-size: 8pt;
}
@bottom-center {
border-top: 1px solid black;
font-size: 8pt;
height: 1cm;
content: "{{rodape|safe}}";
font-style:italic;
}
@bottom-left {
content: "{{data}}";
height: 3cm;
font-size: 8pt;
}
@top-center {
content: string(title);
}
header {
width: 0;
height: 0;
visibility: hidden;
string-set: title content();
}
}
</style>
<link rel="stylesheet" href="{% static '/sapl/css/relatorio.css'%}"> <link rel="stylesheet" href="{% static '/sapl/css/relatorio.css'%}">
</head> </head>

Loading…
Cancel
Save