Show attendees shirts in overview

So schwag can be given out
This commit is contained in:
Sachi King 2018-01-21 10:56:27 +11:00
parent 7370fc6012
commit 98465934ff

View file

@ -12,6 +12,7 @@
{% items_purchased as purchased %}
{% items_pending as pending %}
{% items_purchased 1 as ticket %}
{% items_purchased 6 as shirts %}
{% total_items_purchased 3 as penguin_dinner_count %}
{% total_items_purchased 4 as speakers_dinner_count %}
{% total_items_purchased 5 as pdns_count %}
@ -31,6 +32,18 @@
<dt>PDNS Tickets</dt><dd>{{ pdns_count }}</dd>
<dt>Over 18 years</dt><dd>{% if user.attendee.attendeeprofilebase.attendeeprofile.of_legal_age %}yes{% else %}<strong class="red">NO</strong>{% endif %}</dd>
</dl>
<table class="table table-striped">
<tr>
<th>item</th>
<th>count</th>
</tr>
{% for shirt in shirts%}
<tr>
<td>{{ shirt.product }}</td>
<td>{{ shirt.quantity }}</td>
</tr>
{% endfor %}
</table>
</div>
</div>