2023-12-11 17:19:03 +01:00
|
|
|
<form method="POST" class="remote-form">
|
|
|
|
<b>Sponsorship pending</b>:<br />
|
|
|
|
{{ csrf_input }}
|
|
|
|
<input type="hidden" name="{{ remote_type }}" value="{{ remote_id }}" />
|
|
|
|
<select name="sponsorship_pending">
|
2023-12-13 18:23:05 +01:00
|
|
|
<option value="true" {% if sponsorship_data.sponsorship_pending %}selected{% endif %}>Yes</option>
|
|
|
|
<option value="false" {% if not sponsorship_data.sponsorship_pending %}selected{% endif %}>No</option>
|
2023-12-11 17:19:03 +01:00
|
|
|
</select>
|
|
|
|
<button type="submit" class="btn btn-default support-submit-button">Update</button>
|
|
|
|
</form>
|
|
|
|
|
2023-12-13 18:23:05 +01:00
|
|
|
{% if sponsorship_data.sponsorship_pending %}
|
2023-12-11 17:19:03 +01:00
|
|
|
<form method="POST" class="">
|
|
|
|
{{ csrf_input }}
|
|
|
|
<input type="hidden" name="{{ remote_type }}" value="{{ remote_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-form">
|
|
|
|
<b>Discount</b>:<br />
|
|
|
|
{{ csrf_input }}
|
|
|
|
<input type="hidden" name="{{ remote_type }}" value="{{ remote_id }}" />
|
|
|
|
{% if has_fixed_price %}
|
2023-12-13 18:23:05 +01:00
|
|
|
<input type="number" name="discount" value="{{ sponsorship_data.default_discount }}" disabled />
|
2023-12-11 17:19:03 +01:00
|
|
|
<button type="submit" class="btn btn-default support-submit-button" disabled>Update</button>
|
|
|
|
{% else %}
|
2023-12-13 18:23:05 +01:00
|
|
|
<input type="number" name="discount" value="{{ sponsorship_data.default_discount }}" required />
|
2023-12-11 17:19:03 +01:00
|
|
|
<button type="submit" class="btn btn-default support-submit-button">Update</button>
|
|
|
|
{% endif %}
|
|
|
|
</form>
|