From ef46ab4c7edf4cc79d6b519989d25e3d904c2c57 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 28 May 2024 09:38:44 +0100 Subject: [PATCH] Update refund button in illness state --- templates/account/purchases/payments.html | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/templates/account/purchases/payments.html b/templates/account/purchases/payments.html index 6b877d75d..1ac0112ca 100644 --- a/templates/account/purchases/payments.html +++ b/templates/account/purchases/payments.html @@ -19,19 +19,21 @@
{%- if p.state == "inprogress" and p.provider == "banktransfer" %} - Pay + Pay {%- elif p.state in ["new", "failed"] and p.provider == "stripe" %} - Pay + Pay {% endif -%} {%- if p.state in ["new", "inprogress"] and p.provider == "banktransfer" %} - Cancel + Cancel {%- elif p.state in ["new", "captured", "failed"] and p.provider == "stripe" %} - Cancel + Cancel {% endif -%} {% if REFUND_STATE != "off" and p.state in ["paid", "partrefunded"] %} - Request refund + Request refund {% if REFUND_STATE == "illness" %} + due to illness + {% endif %} {% endif %} View Receipt