25 lines
812 B
HTML
25 lines
812 B
HTML
{% extends "base.html" %}
|
|
{% block titre %}Liste des partitions{% endblock %}
|
|
{% block content %}<h1>Liste des partitions</h1>
|
|
{% if suppression %}
|
|
<p>{{ suppression }}</p>
|
|
{% endif %}
|
|
{% if user.is_authenticated %}
|
|
<h3><a href="{% url "partitions.views.ajouter_morceau" %}">Ajouter un morceau</a></h3>
|
|
{% endif %}
|
|
<ul class="filelist">
|
|
{% for part in partitions %}
|
|
<li>
|
|
{% if not user.is_authenticated %}
|
|
{{ part.nom }} - {{ part.auteur }}
|
|
{% endif %}
|
|
{% if user.is_authenticated %}
|
|
<a href="{% url "partitions.views.listepart" part.nom part.auteur %}" class="fichier">{{ part.nom }} - {{ part.auteur }}</a>
|
|
{% endif %}
|
|
{% if user.profile.is_chef %}
|
|
<a href="{% url "partitions.views.conf_delete_morc" part.nom part.auteur %}" class="supprimer">Supprimer</a>
|
|
{% endif %}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endblock %}
|