mirror of https://github.com/interlegis/sapl.git
4 changed files with 99 additions and 30 deletions
@ -1,21 +1,33 @@ |
|||
{% extends "base.html" %} |
|||
{% load i18n crispy_forms_tags %} |
|||
|
|||
{% load i18n %} |
|||
{% load tz %} |
|||
{% load common_tags %} |
|||
{% block base_content %} |
|||
<h1>Usuários</h1> |
|||
|
|||
{% if user_list %} |
|||
<ul> |
|||
|
|||
<fieldset> |
|||
<h1>Lista de usuários</h1> |
|||
{% if not user_list %} |
|||
<p>{{ NO_ENTRIES_MSG }}</p> |
|||
{% else %} |
|||
<table class="table table-striped table-hover"> |
|||
<thead> |
|||
<tr> |
|||
<th>Nome de Usuário</th> |
|||
<th>E-mail do Usuário</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
{% for user in user_list %} |
|||
<li> |
|||
<a href="{% url 'sapl.base:user_edit' user.pk %}">{{ user.username }}</a> ({{user.email}}) |
|||
</li> |
|||
<tr> |
|||
<td> |
|||
<a href="{% url 'sapl.base:user_edit' user.pk %}">{{ user.username }}</a> |
|||
</td> |
|||
<td>{{ user.email }}</td> |
|||
</tr> |
|||
{% endfor %} |
|||
|
|||
</ul> |
|||
{% else %} |
|||
<p>Não existem usuários cadastrados</p> |
|||
</tbody> |
|||
</table> |
|||
{% endif %} |
|||
<a href="{% url 'sapl.base:user_create' %}">Criar Usuário</a> |
|||
<a class="btn btn-default" href="{% url 'sapl.base:user_create' %}">Criar Usuário</a> |
|||
</fieldset> |
|||
{% include 'paginacao.html'%} |
|||
{% endblock base_content %} |
|||
Loading…
Reference in new issue