2013-09-05 22:21:32 +02:00
|
|
|
{% extends "base_title.html" %}
|
2016-05-26 01:33:21 +02:00
|
|
|
{% load staticfiles %}
|
2013-09-05 22:21:32 +02:00
|
|
|
|
|
|
|
{% block extra_head %}
|
2016-05-26 01:09:31 +02:00
|
|
|
<link type="text/css" rel="stylesheet" href="{% static "css/bda.css" %}" />
|
2013-09-05 22:21:32 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block realcontent %}
|
|
|
|
|
2016-07-29 19:03:36 +02:00
|
|
|
<h2>Attributions</h2>
|
2016-07-08 00:39:31 +02:00
|
|
|
|
|
|
|
<br />
|
2016-07-08 20:27:27 +02:00
|
|
|
<p class="success">Pour raison de sécurité, le lancement du tirage
|
|
|
|
a été désactivé. Vous pouvez le réactiver dans
|
|
|
|
l'<a href="{% url "admin:index" %}">interface admin</a></p>
|
2016-07-08 00:39:31 +02:00
|
|
|
|
2016-07-14 19:29:15 +02:00
|
|
|
<h3 class="horizontal-title">Token :</h3>
|
2016-06-05 13:59:24 +02:00
|
|
|
<pre>{{ token }}</pre>
|
2016-07-14 19:29:15 +02:00
|
|
|
<h3 class="horizontal-title">Placés : {{ total_slots }} ; Déçus : {{ total_losers }}</h3>
|
|
|
|
{% if user.profile.is_buro %}<h3 class="horizontal-title">Déficit total: {{ total_deficit }} €, Opéra: {{ opera_deficit }} €, Attribué: {{ total_sold }} €</h3>{% endif %}
|
|
|
|
<h3 class="horizontal-title">Temps de calcul : {{ duration|floatformat }}s</h3>
|
2013-09-05 22:21:32 +02:00
|
|
|
|
|
|
|
{% for show, members, losers in results %}
|
|
|
|
<div class="attribresult">
|
2016-11-08 10:24:17 +01:00
|
|
|
<h3 class="horizontal-title">{{ show.title }} - {{ show.date }} @ {{ show.location }}</h3>
|
2013-09-05 22:21:32 +02:00
|
|
|
<p>
|
|
|
|
<strong>{{ show.nrequests }} demandes pour {{ show.slots }} places</strong>
|
2016-05-24 00:02:25 +02:00
|
|
|
{{ show.price }}€ par place{% if user.profile.is_buro and show.nrequests < show.slots %}, {{ show.deficit }}€ de déficit{% endif %}
|
2013-09-05 22:21:32 +02:00
|
|
|
</p>
|
|
|
|
Places :
|
|
|
|
<ul>
|
|
|
|
{% for member, rank, origrank, double in members %}
|
|
|
|
<li>{{ member.user.get_full_name }} <span class="details">(souhait {{ origrank }} — rang {{ rank }})</span></li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
Déçus :
|
|
|
|
{% if not losers %}/{% else %}
|
|
|
|
<ul class="losers">
|
|
|
|
{% for member, rank, origrank, double in losers %}
|
|
|
|
{% if not forloop.first %} ; {% endif %}
|
|
|
|
<li>{{ member.user.get_full_name }} <span class="details">(souhait {{ origrank }} — rang {{ rank }})</span></li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% block extracontent %}
|
|
|
|
{% endblock %}
|
|
|
|
{% endblock %}
|