symposion_app/pinaxcon/templates/raffle.html

32 lines
904 B
HTML
Raw Normal View History

{% extends "site_base.html" %}
2019-01-02 01:44:57 +00:00
{% load registrasion_tags %}
{% load lca2018_tags %}
{% load staticfiles %}
{% block head_title %}Raffle Tickets{% endblock %}
{% block page_title %}Raffle Tickets{% endblock %}
2019-01-02 01:44:57 +00:00
{% block content %}
<p>
All of the raffles you are entered into and the tickets you have for each of them.
If available, you will be able to purchase additional raffle tickets from the <a href="{% url "dashboard" %}">Dashboard</a>.
</p>
2019-01-21 02:55:28 +00:00
<h2>Your Raffle Tickets</h2>
2019-01-02 01:44:57 +00:00
{% for raffle in raffles %}
{% if raffle.tickets %}
<h3 class="mt-3">{{ raffle }}</h3>
<ul>
2019-01-02 01:44:57 +00:00
{% for id, numbers in raffle.tickets %}
<li>
<strong>Ticket {{ id }}</strong>
<p>{% for number in numbers %}{{ number }}{% if not forloop.last %}, {% endif %}{% endfor %}</p>
</li>
2019-01-02 01:44:57 +00:00
{% endfor %}
</ul>
2019-01-02 01:44:57 +00:00
{% endif %}
{% empty %}
<p>You do not have tickets in any raffles.</p>
2019-01-02 01:44:57 +00:00
{% endfor %}
{% endblock %}