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