forked from DGNum/gestioCOF
49 lines
1.8 KiB
HTML
49 lines
1.8 KiB
HTML
{% extends "base_title.html" %}
|
|
{% load static %}
|
|
|
|
{% block extra_head %}
|
|
<link type="text/css" rel="stylesheet" href="{% static "bda/css/bda.css" %}" />
|
|
{% endblock %}
|
|
|
|
{% block realcontent %}
|
|
|
|
<h2>Attributions</h2>
|
|
|
|
<br />
|
|
<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>
|
|
|
|
<h3 class="horizontal-title">Token :</h3>
|
|
<pre>{{ token }}</pre>
|
|
<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>
|
|
|
|
{% for show, members, losers in results %}
|
|
<div class="attribresult">
|
|
<h3 class="horizontal-title">{{ show.title }} - {{ show.date }} @ {{ show.location }}</h3>
|
|
<p>
|
|
<strong>{{ show.nrequests }} demandes pour {{ show.slots }} places</strong>
|
|
{{ show.price }}€ par place{% if user.profile.is_buro and show.nrequests < show.slots %}, {{ show.deficit }}€ de déficit{% endif %}
|
|
</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 %}
|