ernestophone.ens.fr/templates/calendrier/view_event.html
Martin Pépin 334c1d2f00 Commit bourrin
Ajoute des changements effectués en prod sans passer par le git
2016-06-21 00:33:32 +02:00

57 lines
1.7 KiB
HTML

{% extends "base.html" %}
{% block titre %}{{ nom }}{% endblock %}
{% block content %}
<div id="viewevent">
<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">
{% if user.profile.is_chef %}
<p><a href="/calendar/edition/{{ev.id}}">Modifier l'événement</a></p>
<p><a href="/calendar/supprimer/{{ev.id}}">Supprimer l'événement</a></p>
<p><a href="/calendar/resend/{{ev.id}}">Renvoyer les mails</a></p>
{% endif %}
<p><a href="{% url "calendrier.views.changename" %}">Changer mon nom pour le doodle</a></p>
</div>
{% endif %}
{% 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>
<th></th>
</tr>
{% endif %}
{% for p in part %}
<tr>
{% if p.participant.doodlename %}
<td>{{ p.participant.doodlename }}</td>
{%else %}
<td>{{ p.participant.user.username }}</td>
{% 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 %}
{% endif %}
</tr>
{% empty %}
Pas de réponse pour l'instant
{% endfor %}
</table>
<p><a href="{% url 'calendrier.views.reponse' id %}">Répondre à l'événement</a></p>
</div>
{% endif %}
{% endblock %}