mirror of https://github.com/interlegis/sapl.git
6 changed files with 194 additions and 6 deletions
@ -0,0 +1,18 @@ |
|||
{% extends "base.html" %} |
|||
{% load i18n crispy_forms_tags %} |
|||
|
|||
{% block base_content %} |
|||
|
|||
<form action="" method="post"> |
|||
{% csrf_token %} |
|||
<table> |
|||
{{ form }} |
|||
</table> |
|||
<input type="submit" name="salvar" value="Salvar alterações" /> |
|||
{% if object.pk %} |
|||
<a href="{% url 'sapl.base:user_delete' object.pk %}">Remover usuário</a> |
|||
{% endif %} |
|||
|
|||
</form> |
|||
|
|||
{% endblock base_content %} |
|||
@ -0,0 +1,21 @@ |
|||
{% extends "base.html" %} |
|||
{% load i18n crispy_forms_tags %} |
|||
|
|||
{% block base_content %} |
|||
<h1>Usuários</h1> |
|||
|
|||
{% if user_list %} |
|||
<ul> |
|||
|
|||
{% for user in user_list %} |
|||
<li> |
|||
<a href="{% url 'sapl.base:user_edit' user.pk %}">{{ user.username }}</a> ({{user.email}}) |
|||
</li> |
|||
{% endfor %} |
|||
|
|||
</ul> |
|||
{% else %} |
|||
<p>Não existem usuários cadastrados</p> |
|||
{% endif %} |
|||
<a href="{% url 'sapl.base:user_create' %}">Criar Usuário</a> |
|||
{% endblock base_content %} |
|||
Loading…
Reference in new issue