mirror of https://github.com/interlegis/sapl.git
5 changed files with 4 additions and 129 deletions
@ -1,14 +0,0 @@ |
|||||
{% extends "crud/detail.html" %} |
|
||||
{% load i18n %} |
|
||||
{% load crispy_forms_tags staticfiles %} |
|
||||
|
|
||||
{% block sub_actions %} |
|
||||
<div class="actions btn-group btn-group-sm" role="group"> |
|
||||
<a href="{% url 'sapl.base:pesquisar_autor' %}" class="btn btn-outline-primary"> |
|
||||
{% blocktrans with verbose_name=view.verbose_name %} Pesquisar {{ verbose_name }} {% endblocktrans %} |
|
||||
</a> |
|
||||
<a href="{{ view.create_url }}" class="btn btn-outline-primary"> |
|
||||
{% blocktrans with verbose_name=view.verbose_name %} Adicionar {{ verbose_name }} {% endblocktrans %} |
|
||||
</a> |
|
||||
</div> |
|
||||
{% endblock sub_actions %} |
|
||||
@ -1,51 +0,0 @@ |
|||||
{% extends "crud/list.html" %} |
|
||||
{% load i18n %} |
|
||||
{% load crispy_forms_tags staticfiles %} |
|
||||
|
|
||||
{% block base_content %} |
|
||||
{% if not show_results %} |
|
||||
{% crispy filter.form %} |
|
||||
{% else %} |
|
||||
<div class="actions btn-group float-right btn-group-sm" role="group"> |
|
||||
<a href="{% url 'sapl.base:pesquisar_autor' %}" class="btn btn-outline-primary">{% trans 'Fazer nova pesquisa' %}</a> |
|
||||
{% if not request.user.is_anonymous %} |
|
||||
<a href="{% url 'sapl.base:autor_create' %}"class="btn btn-outline-primary">Cadastrar Autor</a> |
|
||||
{% endif %} |
|
||||
</div> |
|
||||
<br> |
|
||||
{% if numero_res > 0 %} |
|
||||
{% if numero_res == 1 %} |
|
||||
<p>Foi encontrado {{ numero_res }} resultado</p> |
|
||||
{% else %} |
|
||||
<p>Foram encontrados {{ numero_res }} resultados</p> |
|
||||
{% endif %} |
|
||||
<table class="table table-striped table-hover"> |
|
||||
<thead> |
|
||||
<tr> |
|
||||
<th>Tipo do Autor</th> |
|
||||
<th>Nome do Autor</th> |
|
||||
<th>Usuário</th> |
|
||||
</tr> |
|
||||
</thead> |
|
||||
<tbody> |
|
||||
{% for autor in page_obj %} |
|
||||
<tr> |
|
||||
<td>{{ autor.tipo }}</td> |
|
||||
<td> |
|
||||
<a href="{% url 'sapl.base:autor_detail' autor.pk %}"> |
|
||||
{% if autor.nome %} {{ autor.nome }} {% else %} - {% endif %} |
|
||||
</a> |
|
||||
</td> |
|
||||
<td>{% if autor.user %} {{ autor.user }} {% else %} - {% endif %}</td> |
|
||||
</tr> |
|
||||
{% endfor %} |
|
||||
</tbody> |
|
||||
</table> |
|
||||
{% else %} |
|
||||
<font size="4"><p align="center">{{ NO_ENTRIES_MSG }}</p></font> |
|
||||
{% endif %} |
|
||||
{% endif %} |
|
||||
<br/> |
|
||||
{% include 'paginacao.html'%} |
|
||||
<br /><br /><br /> |
|
||||
{% endblock base_content %} |
|
||||
Loading…
Reference in new issue