2013-09-05 22:21:32 +02:00
|
|
|
{% extends "base_title.html" %}
|
|
|
|
|
|
|
|
{% block extra_head %}
|
|
|
|
<link type="text/css" rel="stylesheet" href="{{ MEDIA_URL }}bda.css" />
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block realcontent %}
|
|
|
|
|
|
|
|
<h1>Attribution</h1>
|
|
|
|
<h2>Token : {{ token }}</h2>
|
|
|
|
<h2>Placés : {{ total_slots }} ; Déçus : {{ total_losers }}</h2>
|
2016-05-24 00:02:25 +02:00
|
|
|
{% if user.profile.is_buro %}<h2>Déficit total: {{ total_deficit }} €, Opéra: {{ opera_deficit }} €, Attribué: {{ total_sold }} €</h2>{% endif %}
|
2014-08-19 12:54:22 +02:00
|
|
|
<h2>Temps de calcul : {{ duration|floatformat }}s</h2>
|
2013-09-05 22:21:32 +02:00
|
|
|
|
|
|
|
{% for show, members, losers in results %}
|
|
|
|
<div class="attribresult">
|
|
|
|
<h2>{{ show.title }} - {{ show.date_no_seconds }} @ {{ show.location }}</h2>
|
|
|
|
<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 %}
|