support: Add button to delete configured fixed next plan.

This will help us modify the configured plan if we need to.
This commit is contained in:
Aman Agrawal
2024-02-13 12:23:07 +00:00
committed by Tim Abbott
parent 68c3c6b872
commit 8cba101e05
7 changed files with 84 additions and 0 deletions

View File

@@ -16,3 +16,11 @@
{% endif %}
{% endif %}
<b>Estimated annual revenue</b>: ${{ dollar_amount(plan_data.estimated_next_plan_revenue) }}<br />
{% if plan_data.next_plan.fixed_price %}
<form method="POST">
{{ csrf_input }}
<input type="hidden" name="{{ remote_type }}" value="{{ remote_id }}" />
<input type="hidden" name="delete_fixed_price_next_plan" value="true" />
<button type="submit" class="delete-next-fixed-price-plan-button">Delete configured fixed price next plan</button>
</form>
{% endif %}

View File

@@ -63,6 +63,8 @@
{% set plan_data = support_data[remote_realm.id].plan_data %}
{% set format_discount = format_discount %}
{% set dollar_amount = dollar_amount %}
{% set remote_id = remote_realm.id %}
{% set remote_type = "remote_realm_id" %}
{% include 'corporate/support/next_plan_details.html' %}
{% endwith %}
</div>

View File

@@ -103,6 +103,8 @@
{% set plan_data = remote_servers_support_data[remote_server.id].plan_data %}
{% set format_discount = format_discount %}
{% set dollar_amount = dollar_amount %}
{% set remote_id = remote_server.id %}
{% set remote_type = "remote_server_id" %}
{% include 'corporate/support/next_plan_details.html' %}
{% endwith %}
</div>