From e652f3d038c7180f43870212b27ae3eb96dc9ec6 Mon Sep 17 00:00:00 2001 From: Kegan Maher Date: Tue, 26 Mar 2024 22:55:53 +0000 Subject: [PATCH] feat(enrollment): success page displays expiration date if any with the TIME_ZONE='America/Los_Angeles' setting, Django will display the expiration date in that time zone Django automatically formats the date according to the user's locale (e.g. 'en' or 'es') turned off djlint around this section because the different

tags in branches of the {% if %} block was throwing errors and causing weird formatting" --- .../enrollment/templates/enrollment/success.html | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/benefits/enrollment/templates/enrollment/success.html b/benefits/enrollment/templates/enrollment/success.html index 71b8cf5fa6..c5a90c58d5 100644 --- a/benefits/enrollment/templates/enrollment/success.html +++ b/benefits/enrollment/templates/enrollment/success.html @@ -21,10 +21,17 @@

{% translate "Success! Your transit benefit is now conn
-

- {% block success-message %} - {% endblock success-message %} -

+ {# djlint:off #} + {% if enrollment.supports_expiration %} +

{% translate "Your benefit will expire on" %} {{ enrollment.expires|date }}.

+

+ {% else %} +

+ {% endif %} + {% block success-message %} + {% endblock success-message %} +

+ {# djlint:on #}

{% translate "Thank you for using Cal-ITP Benefits!" %}