mirror of
https://github.com/pretix/pretix.git
synced 2026-04-26 23:52:35 +00:00
Order cancel: Show refund methods
This commit is contained in:
@@ -119,6 +119,16 @@
|
||||
statement.
|
||||
{% endblocktrans %}
|
||||
</p>
|
||||
<p class="help-block">
|
||||
{% blocktrans trimmed %}
|
||||
The following payment methods will be used to refund the money to you:
|
||||
{% endblocktrans %}
|
||||
</p>
|
||||
<ul class="help-block">
|
||||
{% for prop in proposals %}
|
||||
<li>{{ prop }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
<p class="help-block">
|
||||
{% blocktrans trimmed %}
|
||||
@@ -140,6 +150,16 @@
|
||||
{% endblocktrans %}
|
||||
</strong>
|
||||
</p>
|
||||
<p>
|
||||
{% blocktrans trimmed %}
|
||||
The following payment methods will be used to refund the money to you:
|
||||
{% endblocktrans %}
|
||||
</p>
|
||||
<ul>
|
||||
{% for prop in proposals %}
|
||||
<li>{{ prop }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
<p>
|
||||
{% blocktrans trimmed %}
|
||||
|
||||
@@ -792,6 +792,10 @@ class OrderCancel(EventViewMixin, OrderDetailMixin, TemplateView):
|
||||
ctx['cancel_fee'] = fee
|
||||
ctx['refund_amount'] = refund_amount
|
||||
ctx['can_auto_refund'] = sum(proposals.values()) == refund_amount
|
||||
ctx['proposals'] = [
|
||||
p.payment_provider.payment_presale_render(payment=p)
|
||||
for p in proposals
|
||||
]
|
||||
return ctx
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user