Update checkin details

Add flags for sections on the checkin page so they can be switched
on and off as required.
Display the number of raffle tickets purchased by the attendees.
This commit is contained in:
Joel Addison 2023-03-14 17:19:15 +11:00
parent aeacf7f8a8
commit 96cf72e970

View file

@ -6,6 +6,8 @@
{% block body %}
{% load registrasion_tags %}
{% load lca2018_tags %}
{% load waffle_tags %}
{% items_purchased as purchased %}
{% items_pending as pending %}
{% items_purchased 1 as ticket %}
@ -13,6 +15,7 @@
{% total_items_purchased 3 as penguin_dinner_count %}
<!-- {% total_items_purchased 4 as speakers_dinner_count %} -->
<!-- {% total_items_purchased 5 as pdns_count %} -->
{% total_items_purchased 5 as raffle_tickets %}
{% ticket_type as ticket_type %}
<a type="button" class="btn btn-outline-primary" href="{% url 'regidesk:check_in_scanner' %}">Return to scanning page</a>
@ -54,7 +57,7 @@
<dd class="col-sm-9">{{ user.username }}</dd>
</dl>
{% comment "Not needed for EO2023" %}
{% flag "checkin_shirts" %}
<h4>Shirts ordered</h4>
<table class="table card-text">
{% for shirt in shirts%}
@ -64,11 +67,23 @@
</tr>
{% endfor %}
</table>
{% endcomment %}
{% endflag %}
{% flag "checkin_raffle" %}
<h4>Raffle Tickets</h4>
<table class="table card-text">
{% for raffle in raffle_tickets %}
<tr>
<td>{{ raffle.product }}</td>
<td>{{ raffle.quantity }}</td>
</tr>
{% endfor %}
</table>
{% endflag %}
</div>
</div>
{% comment "Not needed for EO2023" %}
{% flag "checkin_venueless" %}
<div class="card my-3">
<div class="card-header">Venueless</div>
<div class="card-body">
@ -84,7 +99,7 @@
</dl>
</div>
</div>
{% endcomment %}
{% endflag %}
<div class="card my-3">
<div class="card-header">Badge Preview</div>
@ -130,7 +145,7 @@
</div>
</div>
{% comment "Not needed for EO2023" %}
{% flag "checkin_schwag" %}
<div class="card {% if check_in.schwag_given %}border-success{% else %}border-danger{% endif %} my-3">
<div class="card-header {% if check_in.schwag_given %}text-white bg-success{% endif %}">Schwag</div>
<div class="card-body">
@ -144,7 +159,7 @@
</form>
</div>
</div>
{% endcomment %}
{% endflag %}
<div class="card my-3">
<div class="card-header">Log Exception</div>
@ -157,7 +172,7 @@
</div>
</div>
{% comment "Not needed for EO2023" %}
{% flag "checkin_bulk" %}
<div class="card my-3 {% if check_in.checked_in_bool and check_in.schwag_given %}border-success{% elif check_in.checked_in_bool or check_in.schwag_given %}card-warning{% else %}card-danger{% endif %}">
<div class="card-header {% if check_in.checked_in_bool and check_in.schwag_given %}text-white bg-success{% elif check_in.checked_in_bool or check_in.schwag_given %}bg-warning{% endif %}">Bulk actions</div>
<div class="card-body">
@ -178,7 +193,7 @@
</form>
</div>
</div>
{% endcomment %}
{% endflag %}
<a type="button" class="btn btn-outline-primary" href="{% url 'regidesk:check_in_scanner' %}">Return to scanning page</a>