23 lines
1,022 B
HTML
23 lines
1,022 B
HTML
|
{% 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 %}
|
||
|
<tr><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>
|
||
|
<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>
|
||
|
{% getresponse request.user.profile p %}<td>{% if p.user == request.user.profile or request.user.profile.is_chef %}<a href=/propositions/{{p.id}}/supprimer/>Supprimer</a>{% endif %}</td></tr>
|
||
|
|
||
|
{% endfor %}
|
||
|
</table>
|
||
|
{% else %}
|
||
|
Pas de proposition pour le moment
|
||
|
{% endif %}
|
||
|
{% endblock %}
|