Browse Source

Mensagem de perfil habilitado/não habilitado

pull/6/head
Eduardo Edson Batista Cordeiro Alves 9 years ago
committed by Luciano Almeida
parent
commit
d744af9fdd
  1. 1
      sigi/apps/usuarios/views.py
  2. 9
      templates/usuarios/usuario_detail.html

1
sigi/apps/usuarios/views.py

@ -1,7 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import from __future__ import absolute_import
from braces.views import GroupRequiredMixin
from braces.views import FormValidMessageMixin, GroupRequiredMixin from braces.views import FormValidMessageMixin, GroupRequiredMixin
from django.conf import settings from django.conf import settings

9
templates/usuarios/usuario_detail.html

@ -7,6 +7,14 @@
</div> </div>
{% endblock actions %} {% endblock actions %}
{% block msg %}
{% if usuario.conveniado and usuario.responsavel %}
<h4><font face="verdana" color="green"><p>Esse perfil já <strong>está habilitado</strong> para uso das funcionalidades.</p></font></h4>
{% else %}
<h4><font face="verdana" color="red"><p>Esse perfil ainda <strong>não está habilitado</strong> para uso das funcionalidades.</p></font></h4>
{% endif %}
{% endblock msg %}
{% block detail_content %} {% block detail_content %}
<br /> <br />
<table class="table table-striped table-bordered"> <table class="table table-striped table-bordered">
@ -26,4 +34,5 @@
</td> </td>
</tr> </tr>
</table> </table>
{% endblock %} {% endblock %}

Loading…
Cancel
Save