From c0947ac5027174361349492674edc115c53103cb Mon Sep 17 00:00:00 2001 From: rangelbruno Date: Mon, 2 Feb 2026 22:45:30 -0300 Subject: [PATCH] =?UTF-8?q?Feat(Home):=20Adiciona=20card=20Proposi=C3=A7?= =?UTF-8?q?=C3=B5es=20Pendentes=20para=20Operador=20de=20Protocolo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Adiciona verificação is_operador_protocolo na IndexView - Exibe card com atalhos para proposições pendentes e recebidas - Card visível apenas para usuários com permissão de protocolo Signed-off-by: rangelbruno --- sapl/base/views.py | 4 ++++ sapl/templates/index.html | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/sapl/base/views.py b/sapl/base/views.py index 34ccab936..7b7f0d95e 100644 --- a/sapl/base/views.py +++ b/sapl/base/views.py @@ -74,9 +74,13 @@ class IndexView(TemplateView): autor = self.request.user.autor_set.first() context['is_parlamentar'] = autor is not None context['autor_id'] = autor.id if autor else None + # Verifica se é Operador de Protocolo Administrativo + context['is_operador_protocolo'] = self.request.user.has_perm( + 'protocoloadm.add_documentoadministrativo') else: context['is_parlamentar'] = False context['autor_id'] = None + context['is_operador_protocolo'] = False return context diff --git a/sapl/templates/index.html b/sapl/templates/index.html index 2d5a9f745..37476540d 100644 --- a/sapl/templates/index.html +++ b/sapl/templates/index.html @@ -38,6 +38,25 @@ {% endif %} + + {% if is_operador_protocolo %} +
+
+ +
+

Proposições Pendentes

+

Proposições aguardando recebimento

+ +
+ {% endif %} + {% if not is_parlamentar %}