From d744af9fdd3ff074bb59017f996a6ce7421d3faa Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Thu, 30 Jun 2016 17:35:00 -0300 Subject: [PATCH] =?UTF-8?q?Mensagem=20de=20perfil=20habilitado/n=C3=A3o=20?= =?UTF-8?q?habilitado?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sigi/apps/usuarios/views.py | 1 - templates/usuarios/usuario_detail.html | 9 +++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/sigi/apps/usuarios/views.py b/sigi/apps/usuarios/views.py index ad8a95f..8992bf3 100644 --- a/sigi/apps/usuarios/views.py +++ b/sigi/apps/usuarios/views.py @@ -1,7 +1,6 @@ # -*- coding: utf-8 -*- from __future__ import absolute_import -from braces.views import GroupRequiredMixin from braces.views import FormValidMessageMixin, GroupRequiredMixin from django.conf import settings diff --git a/templates/usuarios/usuario_detail.html b/templates/usuarios/usuario_detail.html index 1f60fa9..ad1b546 100644 --- a/templates/usuarios/usuario_detail.html +++ b/templates/usuarios/usuario_detail.html @@ -7,6 +7,14 @@ {% endblock actions %} +{% block msg %} + {% if usuario.conveniado and usuario.responsavel %} +

Esse perfil já está habilitado para uso das funcionalidades.

+ {% else %} +

Esse perfil ainda não está habilitado para uso das funcionalidades.

+ {% endif %} +{% endblock msg %} + {% block detail_content %}
@@ -26,4 +34,5 @@
+ {% endblock %}