diff --git a/sapl/materia/urls.py b/sapl/materia/urls.py index f55a89329..273318d42 100644 --- a/sapl/materia/urls.py +++ b/sapl/materia/urls.py @@ -1,5 +1,6 @@ from django.conf.urls import include, url +from sapl.materia.views_ged import ged_historico from sapl.materia.views import (AcompanhamentoConfirmarView, AcompanhamentoExcluirView, AcompanhamentoMateriaView, AnexadaCrud, @@ -350,5 +351,10 @@ urlpatterns_sistema = [ url(r'^sistema/materia/config-etiqueta-materia-legislativas/',configEtiquetaMateriaLegislativaCrud, name="configEtiquetaMateriaLegislativaCrud"), ] +urlpatterns_ged = [ + url(r'^materia/acervo-historico/$', ged_historico, + name='ged_historico'), +] + urlpatterns = urlpatterns_impressos + urlpatterns_materia + \ - urlpatterns_proposicao + urlpatterns_sistema + urlpatterns_proposicao + urlpatterns_sistema + urlpatterns_ged diff --git a/sapl/materia/views_ged.py b/sapl/materia/views_ged.py new file mode 100644 index 000000000..2e8836f05 --- /dev/null +++ b/sapl/materia/views_ged.py @@ -0,0 +1,19 @@ +""" +View pública para acesso ao acervo histórico via GED (sistema legado). +Issue #1326 / Task #1348 – Adicionar tela do GED dentro do Legislativo. +""" +from django.shortcuts import render +from django.views.decorators.cache import cache_control + +GED_URL = "https://franco-ged.up.railway.app/" + + +@cache_control(public=True, max_age=300) +def ged_historico(request): + """ + Exibe o sistema GED (acervo histórico – matérias anteriores a 2026) + incorporado em iframe. Acesso público, sem autenticação. + """ + return render(request, 'materia/ged_historico.html', { + 'ged_url': GED_URL, + }) diff --git a/sapl/templates/index.html b/sapl/templates/index.html index fdd607214..6bb30a551 100644 --- a/sapl/templates/index.html +++ b/sapl/templates/index.html @@ -155,6 +155,19 @@ + +
+
+ +
+

Acervo Histórico

+

Matérias anteriores a 2026 (sistema legado)

+
+ + Acessar + +
+
diff --git a/sapl/templates/materia/ged_historico.html b/sapl/templates/materia/ged_historico.html new file mode 100644 index 000000000..eac4189cd --- /dev/null +++ b/sapl/templates/materia/ged_historico.html @@ -0,0 +1,133 @@ +{% extends "base.html" %} +{% load i18n staticfiles %} + +{% block head_title %}Acervo Histórico – Matérias Anteriores a 2026 – {{ nome_casa }}{% endblock %} + +{% block head_content %} + {{ block.super }} + +{% endblock %} + +{% block content_subnav %}{% endblock %} +{% block footer_container %}{% endblock %} + +{% block content_container %} +
+ +
+
+
+

Acervo Histórico – Matérias Legislativas

+

Documentos do sistema anterior (GED) · registros anteriores a 2026

+
+ +
+ +
+ +
+
+ Carregando… +
+ Carregando acervo histórico… +
+ +
+ + Não foi possível carregar o acervo histórico. +

O sistema GED pode estar temporariamente indisponível.

+ + Tentar acessar diretamente + +
+ + +
+ +
+ + +{% endblock content_container %} diff --git a/sapl/templates/navbar.yaml b/sapl/templates/navbar.yaml index 051c3697f..e4e57b140 100644 --- a/sapl/templates/navbar.yaml +++ b/sapl/templates/navbar.yaml @@ -49,6 +49,8 @@ check_permission: materia.can_access_impressos {% comment %} FIXME transformar para checagens de menu_[funcionalidade]{% endcomment%} - title: {% trans 'Matérias Legislativas' %} url: sapl.materia:pesquisar_materia + - title: {% trans 'Acervo Histórico (antes de 2026)' %} + url: sapl.materia:ged_historico - title: {% trans 'Matérias Pendentes de Assinatura' %} url: sapl.materia:materias_pendentes_assinatura - title: {% trans 'Pautas das Sessões' %}