@ -16,23 +16,13 @@
{% endif %}
{% endif %}
{% endblock buttons %}
{% endblock buttons %}
{% if not filter_url %}
{% crispy filter.form %}
{% crispy filter.form %}
{% endif %}
{% if filter_url %}
< table class = "table table-striped table-bordered" >
< table class = "table table-striped table-bordered" >
< thead class = "thead-default" >
< thead class = "thead-default" >
< tr > < td > < h3 > {% trans "Autor" %}< / h3 > < / td > < / tr >
< tr > < td > < h3 > {% trans "Autor" %}< / h3 > < / td > < / tr >
< / thead >
< / thead >
{% if filter.qs|length > 1 %}
< br / >
< h3 > {% blocktrans with filter.qs|length as total_autores %}Pesquisa concluída com sucesso! Foram encontrados {{total_autores}} autores.{% endblocktrans %}< / h3 >
{% elif filter.qs|length == 1 %}
< h3 > {% trans 'Pesquisa concluída com sucesso! Foi encontrado 1 autor.'%}< / h3 >
{% else %}
< tr > < td > < h3 > Nenhum autor encontrado.< / h3 > < / td > < / tr >
{% endif %}
< form method = "POST" enctype = "application/x-www-form-urlencoded" >
< form method = "POST" enctype = "application/x-www-form-urlencoded" >
{% csrf_token %}
{% csrf_token %}
{% for m in filter.qs %}
{% for m in filter.qs %}
@ -50,5 +40,4 @@
< input type = "submit" value = "Adicionar autores selecionados" class = "btn btn-primary" >
< input type = "submit" value = "Adicionar autores selecionados" class = "btn btn-primary" >
< / div >
< / div >
< / form >
< / form >
{% endif %}
{% endblock detail_content %}
{% endblock detail_content %}