{% extends "registrasion/base.html" %} {% load registrasion_tags %} {% load lca2018_tags %} {% load staticfiles %} {% block header_title %}{% conference_name %}{% endblock %} {% block proposals_body %}

Raffle Winners

{% for raffle in raffles %}

{{ raffle }}

{% for prize in raffle.prizes.all %}
{{ prize }}
{% if prize.winning_ticket %} {% with prize.winning_ticket as winner %} {# this should be attendee name #}

Winning ticket {{ winner.ticket }}, {{ winner.lineitem.invoice.user }}
Drawn by {{ winner.draw.drawn_by }}, {{ winner.draw.drawn_time}}

{% csrf_token %} {# This should have a `reason` field that can be passed through to the Audit log #}

Re-draw {{ prize }}

{% endwith %} {% else %} Not drawn {% endif %}
{% endfor %}
{% if raffle.is_open %}
{% csrf_token %}

{% endif %} {% if not forloop.last %}
{% endif %} {% endfor %} {% endblock %}