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