ADD Archive documentos

This commit is contained in:
2025-10-23 08:41:07 +00:00
parent e7eccfa10d
commit 096a268daa
5 changed files with 117 additions and 19 deletions

View File

@ -6,7 +6,6 @@
<section class="documentos">
<div class="container">
{% if documentos %}
{#<pre>{{ dump(documentos) }}</pre>#}
{% for doc in documentos %}
<div class="card mb-3">
@ -44,11 +43,13 @@
{{ __('Ver documento', 'Sindikatua') }}
</a>
<a href="{{ doc.documento_url }}" download
<a href="{{ doc.documento_url() }}" download
class="btn me-2 btn-primary-cnt btn-xs" >
<i class="bi bi-cloud-download-fill"></i>
{{ __('Descargar', 'Sindikatua') }}
</a>
{% else %}
no hay doc.documento_url
{% endif %}
@ -60,9 +61,22 @@
{% endfor %}
{% else %}
<div class="alert alert-info" role="alert">
No hay documentos disponibles.
<p>{{ __('No hay documentos', 'Sindikatua') }}</p>
</div>
{% endif %}
<!-- PAGINATION -->
{% set pagination = posts.pagination %}
{% if pagination %}
<div class="pagination-custom mt-5">
{% include 'partials/pagination-custom.twig' %}
</div>
{% else %}
<div class="alert alert-info" role="alert">
No hay paginación.
</div>
{% endif %}
</div>
</section>
{% endblock %}