support: Approve sponsorship for remote server customer.

Adds ability to approve a sponsorship request for a customer
attached to a remote server via the remote server support view.
This commit is contained in:
Lauryn Menard
2023-12-02 18:21:04 +01:00
committed by Tim Abbott
parent 2218e667a6
commit 69f6d3dcb1
3 changed files with 43 additions and 5 deletions

View File

@@ -58,6 +58,17 @@
<button type="submit" class="btn btn-default support-submit-button">Update</button>
</form>
{% if plan_data[remote_server.id].customer and plan_data[remote_server.id].customer.sponsorship_pending %}
<form method="POST" class="">
{{ csrf_input }}
<input type="hidden" name="remote_server_id" value="{{ remote_server.id }}" />
<input type="hidden" name="approve_sponsorship" value="true" />
<button class="btn btn-default sea-green small approve-sponsorship-button">
Approve full sponsorship
</button>
</form>
{% endif %}
<form method="POST" class="remote-server-form">
<b>Discount</b>:<br />
{{ csrf_input }}