Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
support: Disable adding discount for fixed price plans.
Vishnu KS023a33dc49de
diff --git a/templates/analytics/realm_details.html b/templates/analytics/realm_details.htmlindex 9be5b16e472..2309276bc91 100644--- a/templates/analytics/realm_details.html+++ b/templates/analytics/realm_details.html@@ -64,8 +64,13 @@<b>Discount (use 85 for nonprofits)</b>:<br>{{ csrf_input }}<input type="hidden" name="realm_id" value="{{ realm.id }}" />+ {% if realm.current_plan and realm.current_plan.fixed_price %}+ <input type="number" name="discount" value="{{ get_discount_for_realm(realm) }}" disabled>+ <button type="submit" class="button rounded small support-submit-button" disabled>Update</button>+ {% else %}<input type="number" name="discount" value="{{ get_discount_for_realm(realm) }}" required><button type="submit" class="button rounded small support-submit-button">Update</button>+ {% endif %}</form>{% if realm.current_plan %}<div class="current-plan-details">