From 3c7d6ba55ba76fa7b1ed12dede1e8e12b99a7f0d Mon Sep 17 00:00:00 2001 From: KemuelAlves Date: Tue, 19 May 2026 09:54:08 -0300 Subject: [PATCH 1/3] =?UTF-8?q?Feat(Hist=C3=B3rico-materias):=20Franco=20d?= =?UTF-8?q?a=20Rocha=20-=20Migra=C3=A7=C3=A3o=20de=20documentos=20do=20sis?= =?UTF-8?q?tema=20Fisa=20p/=20GED=20[issueAB#1325=20task=20AB#1348]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/materia/urls.py | 8 +- sapl/materia/views_ged.py | 19 ++++ sapl/templates/index.html | 13 +++ sapl/templates/materia/ged_historico.html | 133 ++++++++++++++++++++++ sapl/templates/navbar.yaml | 2 + 5 files changed, 174 insertions(+), 1 deletion(-) create mode 100644 sapl/materia/views_ged.py create mode 100644 sapl/templates/materia/ged_historico.html 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)

+ +
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' %} From 775a69d4035c6d87544182c9f8544d248ebd0b96 Mon Sep 17 00:00:00 2001 From: KemuelAlves Date: Thu, 21 May 2026 08:31:17 -0300 Subject: [PATCH 2/3] =?UTF-8?q?Feat=20(Proposi=C3=A7=C3=B5es):=20Impl=20co?= =?UTF-8?q?mponente=20de=20checkbox=20ao=20inves=20de=20select=20para=20se?= =?UTF-8?q?lecionar=20os=20co-autores=20da=20proposi=C3=A7=C3=A3o=20[AB#13?= =?UTF-8?q?24]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/materia/forms.py | 6 +- sapl/templates/materia/proposicao_form.html | 223 ++++++++++++++------ 2 files changed, 166 insertions(+), 63 deletions(-) diff --git a/sapl/materia/forms.py b/sapl/materia/forms.py index 82c056ef4..0ba1ca7f0 100644 --- a/sapl/materia/forms.py +++ b/sapl/materia/forms.py @@ -2003,10 +2003,8 @@ class ProposicaoForm(FileFieldCheckMixin, forms.ModelForm): label=_('Co-autores'), required=False, queryset=Autor.objects.all(), - widget=forms.SelectMultiple(attrs={ - 'class': 'select2-coautores', - 'style': 'width: 100%', - 'data-placeholder': _('Selecione os co-autores...') + widget=forms.CheckboxSelectMultiple(attrs={ + 'class': 'coautores-checkbox', }), help_text=_('Selecione os demais autores deste documento. ' 'Eles serão adicionados como co-autores ao incorporar a proposição.') diff --git a/sapl/templates/materia/proposicao_form.html b/sapl/templates/materia/proposicao_form.html index 1300f178a..69d9d02fe 100644 --- a/sapl/templates/materia/proposicao_form.html +++ b/sapl/templates/materia/proposicao_form.html @@ -3,26 +3,68 @@ {% load crispy_forms_tags %} {% block extra_css %} -