ernestophone.ens.fr/templates/partitions/liste.html

20 lines
717 B
HTML
Raw Normal View History

2015-03-17 19:03:51 +01:00
{% extends "base.html" %}
{% block titre %}Liste des partitions{% endblock %}
{% block content %}<h1>Liste des partitions</h1>
{% if suppression %}
2015-04-13 18:56:43 +02:00
<p>{{ suppression }}</p>
2015-03-17 19:03:51 +01:00
{% 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 %}