support: Show sponsorship forms only for non-deactivated realms.

For deactivated realms, we show their sponsorship state (discount,
required plan tier, etc.) but not the form to update those fields.
This commit is contained in:
Lauryn Menard
2025-06-17 19:51:29 +02:00
committed by Tim Abbott
parent 405dc6131f
commit f9dd3aada3

View File

@@ -132,7 +132,15 @@
<button type="submit" class="support-submit-button">Update</button>
</form>
</div>
{% if realm.plan_type != SPONSORED_PLAN_TYPE %}
{% if realm.deactivated %}
<div class="support-sponsorship-container">
{% with %}
{% set sponsorship_data = realm_support_data[realm.id].sponsorship_data %}
{% set dollar_amount = dollar_amount %}
{% include 'corporate/support/sponsorship_details.html' %}
{% endwith %}
</div>
{% elif realm.plan_type != SPONSORED_PLAN_TYPE %}
<div class="support-sponsorship-container">
{% with %}
{% set sponsorship_data = realm_support_data[realm.id].sponsorship_data %}