Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

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

Lauryn Menardf9dd3aada346
diff --git a/templates/corporate/support/realm_details.html b/templates/corporate/support/realm_details.html
index 266bff39092..9b4505069c0 100644
--- a/templates/corporate/support/realm_details.html
+++ b/templates/corporate/support/realm_details.html
@@ -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 %}