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" >
2016-06-21 00:33:32 +02:00
< h1 > {{ nom }}< / h1 >
< h4 > Le {{ev.date}}{% if fin %} de {{ ev.debut|time:"H:i"}} à {{ ev.fin|time:"H:i" }} {%else %} à {{ ev.debut|time:"H:i" }} {%endif %}{{ ev.lieu }}< / h4 >
{% if desc %}
< p > {{ev.description|safe }}< / p >
{% endif %}
{% if user.is_authenticated and ev.desc_users %}
< p > {{ ev.desc_users|safe }}< / p >
{% endif %}
< / div >
{% if user.is_authenticated %}
< div id = "actions" >
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 >
2015-09-23 08:08:26 +02:00
< p > < a href = "/calendar/resend/{{ev.id}}" > Renvoyer les mails< / a > < / p >
2015-07-22 22:08:59 +02:00
{% endif %}
2016-06-21 00:33:32 +02:00
< p > < a href = "{% url " calendrier . views . changename " % } " > Changer mon nom pour le doodle< / a > < / p >
2015-07-22 22:08:59 +02:00
< / div >
2016-06-21 00:33:32 +02:00
{% endif %}
2015-07-22 22:08:59 +02:00
{% 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 >
2016-06-21 00:33:32 +02:00
< th > < / th >
2015-07-22 22:08:59 +02:00
< / tr >
{% endif %}
{% for p in part %}
< tr >
2016-06-21 00:33:32 +02:00
{% if p.participant.doodlename %}
< td > {{ p.participant.doodlename }}< / td >
{%else %}
2015-07-22 22:08:59 +02:00
< td > {{ p.participant.user.username }}< / td >
2016-06-21 00:33:32 +02:00
{% endif %}
{% if p.reponse == "oui" %}< td class = "oui" > < / td > < td class = "details" > {{ p.details }}< / td >
{% elif p.reponse == "pe" %}< td class = "pe" > < / td > < td class = "details" > {{ p.details }}< / td >
{% elif p.reponse == "non" %}< td class = "non" > < / td > < td class = "details" > {{ p.details }}< / td >
{% else %}
2015-07-22 22:08:59 +02:00
{% endif %}
< / tr >
{% empty %}
Pas de réponse pour l'instant
{% endfor %}
< / table >
2016-06-21 00:33:32 +02:00
< p > < a href = "{% url 'calendrier.views.reponse' id %}" > Répondre à l'événement< / a > < / p >
2015-07-22 22:08:59 +02:00
< / div >
{% endif %}
2015-04-13 18:56:43 +02:00
{% endblock %}