Ajout contenu page Media

This commit is contained in:
Claude Paroz 2025-08-16 20:27:45 +02:00
parent b58d85198a
commit daf7ca4ba0
6 changed files with 41 additions and 3 deletions

View file

@ -8,7 +8,7 @@
{% for item in object_list %}
<div class="border-bottom border-danger mt-3{% if item.prive %} prive{% endif %}">
<div class="row">
<div class="col col-12 col-sm-4 col-lg-2 bg-white text-black rounded align-self-center text-center fw-bold pt-2 pb-2">
<div class="col col-12 col-sm-4 col-lg-2 text-black rounded align-self-center text-center fw-bold pt-2 pb-2 date_agenda">
{{ item.date_heure|date:'D d F à H:i' }}
</div>
<div class="col col-12 col-sm-8 col-lg-10 fs-4">{{ item.titre }}</div>

23
templates/media.html Normal file
View file

@ -0,0 +1,23 @@
{% extends "base.html" %}
{% block page_title %} - Media{% endblock %}
{% block content %}
<h2 class="mb-5">Enregistrements, photos et vidéos de la chorale</h2>
{% for item in object_list %}
<div class="border-bottom border-danger mt-3{% if item.prive %} prive{% endif %}">
<div class="row">
<div class="col col-12 col-sm-8 col-lg-10 fs-4">
<a href="{{ item.url|default:item.fichier.url }}">{{ item.titre }}</a>
</div>
<div class="col col-12 col-sm-4 col-lg-2 text-end">
{{ item.quand|date:'d F Y' }}
</div>
</div>
<div class="pb-3">{{ item.infos }}</div>
</div>
{% empty %}
<p><i>Aucun document disponible pour le moment</i></p>
{% endfor %}
{% endblock %}