From 03254bea5be817db7827fd296dc22a1c5b47bf4d Mon Sep 17 00:00:00 2001 From: Aman Agrawal Date: Wed, 10 Jan 2024 10:23:23 +0000 Subject: [PATCH] billing: Change how flat discount on billing/upgrade page is displayed. --- templates/corporate/billing.html | 10 +++++----- templates/corporate/upgrade.html | 10 +++++----- web/styles/portico/billing.css | 9 +++++++++ 3 files changed, 19 insertions(+), 10 deletions(-) diff --git a/templates/corporate/billing.html b/templates/corporate/billing.html index 7dfd89a820..14b6c6fcb3 100644 --- a/templates/corporate/billing.html +++ b/templates/corporate/billing.html @@ -241,10 +241,6 @@ {% if not fixed_price %}
- {% if using_min_licenses_for_plan %} - Minimum purchase for this plan: {{ min_licenses_for_plan }} licenses -
- {% endif %} ${{ pre_discount_renewal_cents }} (${{ price_per_license }} x {{ licenses_at_next_renewal }} {{ 'user' if licenses_at_next_renewal == 1 else 'users' }} x {% if switch_to_annual_at_end_of_cycle %} 12 months @@ -255,7 +251,8 @@ {%- endif -%}) {% if discounted_months_left != 0 %}
- Discount: ${{ flat_discount }}/month off ({{ discounted_months_left }} {{ "month" if discounted_months_left == 1 else "months" }} remaining) + + ${{ flat_discount }}/month off ({{ discounted_months_left }} {{ "month" if discounted_months_left == 1 else "months" }} remaining) {% endif %} {% if discount_percent %}
@@ -265,6 +262,9 @@ {% endif %}

${{ renewal_amount }}

+ {% if not fixed_price and using_min_licenses_for_plan %} + Minimum purchase for this plan: {{ min_licenses_for_plan }} licenses + {% endif %} {% endif %} {% else %} Your plan ends on {{ renewal_date }}, and does not renew. diff --git a/templates/corporate/upgrade.html b/templates/corporate/upgrade.html index cd838e0aff..5805f18d71 100644 --- a/templates/corporate/upgrade.html +++ b/templates/corporate/upgrade.html @@ -125,10 +125,6 @@
- {% if not manual_license_management and using_min_licenses_for_plan %} - Minimum purchase for this plan: {{ min_licenses_for_plan }} licenses -
- {% endif %} $ ($ x {% if not manual_license_management %} @@ -146,13 +142,17 @@ {% endif %} {% if page_params.flat_discounted_months > 0 %}
- Discount: $/month off ({{ page_params.flat_discounted_months }} {{ "month" if discounted_months_left == 1 else "months" }} remaining) + + $/month off ({{ page_params.flat_discounted_months }} {{ "month" if page_params.flat_discounted_months == 1 else "months" }} remaining) {% endif %}

$

{% if free_trial_days %} Your actual bill will depend on the number of active users in your organization. {% endif %} + {% if not manual_license_management and using_min_licenses_for_plan %} + Minimum purchase for this plan: {{ min_licenses_for_plan }} licenses + {% endif %}
diff --git a/web/styles/portico/billing.css b/web/styles/portico/billing.css index caadff5968..6c6cb611d6 100644 --- a/web/styles/portico/billing.css +++ b/web/styles/portico/billing.css @@ -738,3 +738,12 @@ input[name="licenses"] { #account-deactivated-success-page-top-message { margin-top: 10px; } + +.flat-discount-minus-sign { + position: absolute; + left: -10px; +} + +.flat-discount-separator { + border-bottom: 1px solid hsl(0deg 0% 0%); +}