Browse Source

Muda template do detalhe de perfil do usuario

pull/6/head
Eduardo Edson Batista Cordeiro Alves 9 years ago
committed by Luciano Almeida
parent
commit
fb1eaf8e8c
  1. 38
      templates/usuarios/habilitar_detail.html
  2. 36
      templates/usuarios/usuario_detail.html

38
templates/usuarios/habilitar_detail.html

@ -1,38 +0,0 @@
{% extends "crud/detail.html" %}
{% load i18n %}
{% block actions %}
<div class="actions btn-group pull-right" role="group">
<a href="{% url 'usuarios:habilitar_edit' pk %}" class="btn btn-default">{% trans 'Editar' %}</a>
</div>
{% endblock actions %}
{% block msg %}
{% if not usuario.habilitado %}
<h4><font face="verdana" color="red"><p>Esse perfil ainda <strong>não está habilitado</strong> para uso das funcionalidades.</p></font></h4>
{% else %}
<h4><font face="verdana" color="green"><p>Esse perfil já <strong>está habilitado</strong> para uso das funcionalidades.</p></font></h4>
{% endif %}
{% endblock msg %}
{% block title %}
<h1 class="page-header"> Habilitar </h1>
{% endblock %}
{% block detail_content %}
<br />
<dl>
<dt>Nome completo: </dt>
<dd>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- {{ usuario.nome_completo }}</dd>
<dt>Email: </dt>
<dd>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- {{ usuario.email }}</dd>
<dt>CPF: </dt>
<dd>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- {{ usuario.cpf }}</dd>
<dt>Cargo: </dt>
<dd>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- {{ usuario.cargo }}</dd>
<dt>Vinculo: </dt>
<dd>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- {{ usuario.vinculo }}</dd>
<dt>Casa Legislativa: </dt>
<dd>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- {{ usuario.casa_legislativa }}</dd>
</dl>
{% endblock detail_content %}

36
templates/usuarios/usuario_detail.html

@ -7,25 +7,23 @@
</div> </div>
{% endblock actions %} {% endblock actions %}
{% block msg %} {% block detail_content %}
{% if not usuario.habilitado %} <br />
<h4><font face="verdana" color="red"><p>Esse perfil ainda <strong>não está habilitado</strong> para uso das funcionalidades.</p></font></h4> <table class="table table-striped table-bordered">
{% else %} <tr><th>Nome de Usuário: </th><td>{{object.username}}</td></tr>
<h4><font face="verdana" color="green"><p>Esse perfil já <strong>está habilitado</strong> para uso das funcionalidades.</p></font></h4> <tr><th>Nome completo: </th><td>{{object.nome_completo}}</td></tr>
{% endif %} <tr><th>Email: </th><td>{{object.email}}</td></tr>
{% endblock msg %} <tr><th>CPF: </th><td>{{object.cpf}}</td></tr>
<tr><th>RG: </th><td>{{object.rg}}</td></tr>
{% block extrablock %} <tr><th>Casa Legislativa: </th><td>{{object.casa_legislativa}}</td></tr>
<tr><th>Cargo: </th><td>{{object.cargo}}</td></tr>
<tr><th>Vínculo: </th><td>{{object.vinculo}}</td></tr>
<tr><th>Telefone(s): </th>
<td>
{% for tel in telefones %} {% for tel in telefones %}
<div class="col-sm-span"> {{tel|last}}<br/>
<div class="form-group">
<p class="control-label">{{tel|first}}</p>
<div class="controls">
<p class="form-control-static">{{ tel|last }}</p>
</div>
</div>
</div>
{% endfor %} {% endfor %}
</td>
</tr>
</table>
{% endblock %} {% endblock %}

Loading…
Cancel
Save