2015-04-13 18:56:43 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block titre %}{{ nom }}{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2015-07-22 22:08:59 +02:00
|
|
|
<div id="viewevent">
|
2015-04-17 18:38:44 +02:00
|
|
|
{% if user.profile.is_chef %}
|
|
|
|
<p><a href="/calendar/edition/{{ev.id}}">Modifier l'événement</a></p>
|
2015-07-22 22:08:59 +02:00
|
|
|
<p><a href="/calendar/supprimer/{{ev.id}}">Supprimer l'événement</a></p>
|
|
|
|
{% endif %}
|
|
|
|
{% if user.is_authenticated %}
|
|
|
|
<p><a href="{% url 'calendrier.views.reponse' id %}">Répondre à l'événement</a></p>
|
2015-04-17 18:38:44 +02:00
|
|
|
{% endif %}
|
2015-04-13 18:56:43 +02:00
|
|
|
<p>{{ nom }}</p>
|
|
|
|
<p>{{ev.date}}</p>
|
|
|
|
<p>{{ev.debut }}
|
|
|
|
{% if fin %}
|
|
|
|
- {{ ev.fin }}
|
|
|
|
{% endif %}
|
|
|
|
</p>
|
|
|
|
<p> Lieu : {{ ev.lieu }}</p>
|
|
|
|
{% if desc %}
|
|
|
|
<p>{{ev.description }}</p>
|
|
|
|
{% endif %}
|
2015-07-22 22:08:59 +02:00
|
|
|
</div>
|
|
|
|
{% if user.is_authenticated %}
|
|
|
|
<div id="doodle">
|
|
|
|
<h4>Participants</h4>
|
|
|
|
<p><b>{{ nboui }}</b> ont répondu oui, <b>{{ nbpe }}</b> peut-être, et <b>{{ nbnon }}</b> non</p>
|
|
|
|
<table>
|
|
|
|
{% if part %}<tr>
|
|
|
|
<th>Ernestophoniste</th>
|
|
|
|
<th>Réponse</th>
|
|
|
|
</tr>
|
|
|
|
{% endif %}
|
|
|
|
{% for p in part %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ p.participant.user.username }}</td>
|
|
|
|
{% if p.reponse == "oui" %}<td class="oui"></td>
|
|
|
|
{% elif p.reponse == "pe" %}<td class="pe"></td>
|
|
|
|
{% elif p.reponse == "non" %}<td class="non"></td>
|
|
|
|
{% else %}<td></td>
|
|
|
|
{% endif %}
|
|
|
|
</tr>
|
|
|
|
{% empty %}
|
|
|
|
Pas de réponse pour l'instant
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2015-04-13 18:56:43 +02:00
|
|
|
{% endblock %}
|