Add option to hide "payment pending" bubble on ticket pages

This commit is contained in:
Raphael Michel
2020-12-09 17:02:39 +01:00
parent 663fd8a57a
commit c2345d200a
7 changed files with 19 additions and 2 deletions

View File

@@ -5,6 +5,8 @@
<span class="label label-warning {{ class }}">{% trans "Approval pending" %}</span>
{% elif order.total == 0 %}
<span class="label label-warning {{ class }}">{% trans "Confirmation pending" context "order state" %}</span>
{% elif event.settings.payment_pending_hidden %}
{# intentionally left blank #}
{% else %}
<span class="label label-warning {{ class }}">{% trans "Payment pending" %}</span>
{% endif %}

View File

@@ -53,7 +53,7 @@
{% trans "View in backend" %}
</a>
{% endif %}
{% include "pretixpresale/event/fragment_order_status.html" with order=order class="pull-right flip" %}
{% include "pretixpresale/event/fragment_order_status.html" with order=order event=request.event class="pull-right flip" %}
<div class="clearfix"></div>
</h2>
{% if order.status == "n" and not order.require_approval %}

View File

@@ -18,7 +18,7 @@
{% trans "View in backend" %}
</a>
{% endif %}
{% include "pretixpresale/event/fragment_order_status.html" with order=order class="pull-right flip" %}
{% include "pretixpresale/event/fragment_order_status.html" with order=order event=request.event class="pull-right flip" %}
<div class="clearfix"></div>
</h2>
{% eventsignal event "pretix.presale.signals.position_info_top" order=order position=position request=request %}