Allow users to see the number of checkins (#2561)

Co-authored-by: Richard Schreiber <schreiber@rami.io>
This commit is contained in:
Raphael Michel
2022-03-30 18:03:05 +02:00
committed by GitHub
parent c23a3fcfcd
commit 22f3412ad0
5 changed files with 67 additions and 10 deletions

View File

@@ -31,6 +31,8 @@
</p>
{% if line.seat or line.voucher or line.subevent or line.used_membership%}
<dl class="dl-inline">
{% elif event.settings.show_checkin_number_user and line.checkin_count %}
<dl class="dl-inline">
{% endif %}
{% if line.seat %}
<div class="cart-icon-details">
@@ -94,8 +96,25 @@
</dd>
</div>
{% endif %}
{% if event.settings.show_checkin_number_user and line.checkin_count %}
<div class="cart-icon-details">
<dt class="sr-only">{% trans "Usage:" context "ticket_checkins" %}</dt>
<dd class="text-success">
<span class="fa fa-check-circle fa-fw text-success" aria-hidden="true"></span>
<strong>
{% blocktrans trimmed count count=line.checkin_count %}
This ticket has been used once.
{% plural %}
This ticket has been used {{ count }} times.
{% endblocktrans %}
</strong>
</dd>
</div>
{% endif %}
{% if line.seat or line.voucher or line.subevent or line.used_membership%}
</dl>
{% elif event.settings.show_checkin_number_user and line.checkin_count %}
</dl>
{% endif %}
{% if line.issued_gift_cards.exists %}