2023-11-09 21:01:01 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% load static %}
|
2023-11-17 21:06:57 +01:00
|
|
|
{% block title %}
|
|
|
|
{{ title }}
|
|
|
|
{% endblock title %}
|
2023-11-09 21:01:01 +01:00
|
|
|
{% block content %}
|
|
|
|
<form method="post" enctype="multipart/form-data">
|
|
|
|
<table class="mx-auto">
|
2023-11-17 21:06:57 +01:00
|
|
|
{% csrf_token %}
|
|
|
|
{{ form.as_table }}
|
|
|
|
<tr>
|
|
|
|
<td></td>
|
|
|
|
<td>
|
|
|
|
<input type="submit" name="submit" value="Submit" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td></td>
|
|
|
|
<td>
|
|
|
|
<input type="submit"
|
2024-04-04 11:27:33 +02:00
|
|
|
name="submit_and_redirect"
|
|
|
|
value="Submit & Create Session" />
|
2023-11-17 21:06:57 +01:00
|
|
|
</td>
|
|
|
|
</tr>
|
2024-04-29 16:20:44 +02:00
|
|
|
{% if purchase_id %}
|
2024-04-30 12:04:16 +02:00
|
|
|
<tr>
|
|
|
|
<td></td>
|
|
|
|
<td>
|
2024-08-08 14:47:51 +02:00
|
|
|
<a href="{% url 'delete_purchase' purchase_id %}"
|
|
|
|
class="text-red-600"
|
|
|
|
onclick="return confirm('Are you sure you want to delete this purchase?');">Delete</a>
|
2024-04-30 12:04:16 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
2024-04-29 16:20:44 +02:00
|
|
|
{% endif %}
|
2023-11-09 21:01:01 +01:00
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
{% endblock content %}
|
|
|
|
{% block scripts %}
|
|
|
|
{% if script_name %}
|
|
|
|
<script type="module" src="{% static 'js/'|add:script_name %}"></script>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock scripts %}
|