{% extends 'layouts/authenticated.html.twig' %} {% block page_title %}{{ page_title }}{% endblock %} {% block content %}
{# Header #}

{{ page_title }}

Gérez et visualisez tous les médias du système

Statistiques de Stockage
{# Stats Cards #}

Total Médias

{{ globalStats.total_count|number_format(0, ',', ' ') }}

Espace Total

{{ totalSizeFormatted }}

Total Accès

{{ globalStats.total_accesses|number_format(0, ',', ' ') }}

{# Filters #}
{{ form_start(filterForm, {'method': 'GET', 'attr': {'class': 'space-y-4'}}) }}
{{ form_label(filterForm.search) }} {{ form_widget(filterForm.search) }}
{{ form_label(filterForm.type) }} {{ form_widget(filterForm.type) }}
{{ form_label(filterForm.category) }} {{ form_widget(filterForm.category) }}
{{ form_label(filterForm.uploadedBy) }} {{ form_widget(filterForm.uploadedBy) }}
{{ form_label(filterForm.dateFrom) }} {{ form_widget(filterForm.dateFrom) }}
{{ form_label(filterForm.dateTo) }} {{ form_widget(filterForm.dateTo) }}
{{ form_label(filterForm.visibility) }} {{ form_widget(filterForm.visibility) }}
{{ form_label(filterForm.status) }} {{ form_widget(filterForm.status) }}
{# Buttons #} {{ form_end(filterForm) }}
{# Bulk Actions Bar #} {# Results Count #}

{{ totalItems }} résultat(s) trouvé(s) {% if currentPage > 1 %} - Page {{ currentPage }} sur {{ totalPages }}{% endif %}

{# Gallery Grid or Table #} {% if mediaList is empty %}

Aucun média trouvé

Aucun résultat ne correspond à vos critères de recherche.

{% else %} {% if viewMode == 'table' %} {# Table View #}
{% for media in mediaList %} {% endfor %}
Fichier Type Uploadé par Taille Date Actions
{{ media.originalFileName }}
{{ media.type }} {{ media.uploadedBy ? media.uploadedBy.email : 'N/A' }} {{ (media.fileSize / 1024 / 1024)|number_format(2) }} MB {{ media.createdAt|date('d/m/Y H:i') }}
{% else %} {# Grid View #}
{% for media in mediaList %}
{{ media.category }}

{{ media.originalFileName }}

{{ media.uploadedBy ? media.uploadedBy.email : 'N/A' }}

{{ (media.fileSize / 1024 / 1024)|number_format(2) }} MB

{{ media.createdAt|date('d/m/Y') }}

{% endfor %}
{% endif %} {# Pagination #} {% if totalPages > 1 %}
{% endif %} {% endif %}
{# Grant Access Modal #} {% endblock %}