mirror of https://github.com/interlegis/sapl.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.1 KiB
32 lines
1.1 KiB
{% extends "crud/detail.html" %}
|
|
{% load i18n crispy_forms_tags %}
|
|
{% block detail_content %}
|
|
|
|
{% if not show_results %}
|
|
{% crispy filter.form %}
|
|
{% else %}
|
|
{% if object_list|length > 0 %}
|
|
{% if object_list|length == 1 %}
|
|
<h3 style="text-align: right;">{% trans 'Pesquisa concluída com sucesso! Foi encontrado 1 documento.'%}</h3>
|
|
{% else %}
|
|
<h3 style="text-align: right;">Foram encontrados {{object_list|length}} documentos.</h3>
|
|
{% endif %}
|
|
{% crispy form %}
|
|
{% else %}
|
|
<tr><td><h3 style="text-align: right;">Nenhum documento encontrado.</h3></td></tr>
|
|
{% endif %}
|
|
|
|
{% endif%}
|
|
{% endblock detail_content %}
|
|
|
|
{% block extra_js %}
|
|
<script language="JavaScript">
|
|
function checkAll(elem) {
|
|
let checkboxes = document.getElementsByName('documentos');
|
|
for (let i = 0; i < checkboxes.length; i++) {
|
|
if (checkboxes[i].type == 'checkbox')
|
|
checkboxes[i].checked = elem.checked;
|
|
}
|
|
}
|
|
</script>
|
|
{% endblock %}
|
|
|