mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
Waiting list: Show warning if event is not live
This commit is contained in:
@@ -31,6 +31,11 @@
|
|||||||
here immediately. If you want, you can also send them out manually right now.
|
here immediately. If you want, you can also send them out manually right now.
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
</p>
|
</p>
|
||||||
|
{% if not running %}
|
||||||
|
<div class="alert alert-warning">
|
||||||
|
{% trans "Currently, no vouchers will be sent since your event is not live or is not selling tickets." %}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<p>
|
<p>
|
||||||
{% blocktrans trimmed %}
|
{% blocktrans trimmed %}
|
||||||
|
|||||||
@@ -174,6 +174,12 @@ class WaitingListView(EventPermissionRequiredMixin, PaginationMixin, ListView):
|
|||||||
|
|
||||||
ctx['any_avail'] = any_avail
|
ctx['any_avail'] = any_avail
|
||||||
ctx['estimate'] = self.get_sales_estimate()
|
ctx['estimate'] = self.get_sales_estimate()
|
||||||
|
|
||||||
|
ctx['running'] = (
|
||||||
|
self.request.event.live
|
||||||
|
and (self.request.event.has_subevents or self.request.event.presale_is_running)
|
||||||
|
)
|
||||||
|
|
||||||
return ctx
|
return ctx
|
||||||
|
|
||||||
def get_sales_estimate(self):
|
def get_sales_estimate(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user