2015-07-22 22:08:59 +02:00
{% extends "base.html" %}
{% load getresponse %}
{% block titre %}Propositions de morceau{% endblock %}
{% block content %}< h1 > Liste des propositions< / h1 >
{% if error %}
< p > {{ error }}< / p >
{% endif %}
< p > < a href = "{% url " propositions . views . create_prop " % } " > Proposer un morceau< / a > < / p >
{% if n > 0 %}
< table >
< tr > < th > < / th > < th > Oui< / th > < th > Non< / th > < th > < / th > < th > < / th > < th > < / th > < / tr >
{% for p in props %}
2016-06-21 00:33:32 +02:00
< tr class = "prop" > < td > {% if p.lien %}< a href = {{p.lien}} > {% endif %}< b > {{ p.nom }}< / b > {% if p.artiste %} - {{ p.artiste }}{% endif %}{% if p.lien %}< / a > {% endif %}< / td >
2015-07-22 22:08:59 +02:00
< td > {{p.nboui }}< / td > < td > {{ p.nbnon }}< / td > < td > < a href = "{% url " propositions . views . repoui " p . id % } " > Oui< / a > < / td > < td > < a href = "{% url " propositions . views . repnon " p . id % } " > Non< / a > < / td >
2016-06-21 00:33:32 +02:00
{% getresponse request.user.profile p %}< td > {% if p.user == request.user.profile or request.user.profile.is_chef %}< a class = "supprimer" href = /propositions/{{p.id}}/supprimer/ > Supprimer< / a > {% endif %}< / td > < / tr >
2015-07-22 22:08:59 +02:00
{% endfor %}
< / table >
{% else %}
Pas de proposition pour le moment
{% endif %}
{% endblock %}