2023-11-09 20:01:01 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% load static %}
|
2023-11-17 20:06:57 +00:00
|
|
|
{% block title %}
|
|
|
|
{{ title }}
|
|
|
|
{% endblock title %}
|
2023-11-09 20:01:01 +00:00
|
|
|
{% block content %}
|
|
|
|
<form method="post" enctype="multipart/form-data">
|
|
|
|
<table class="mx-auto">
|
2023-11-17 20:06:57 +00: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-02-10 08:50:53 +00:00
|
|
|
name="submit_and_redirect"
|
|
|
|
value="Submit & Create Purchase" />
|
2023-11-17 20:06:57 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
2023-11-09 20:01:01 +00:00
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
{% endblock content %}
|
|
|
|
{% block scripts %}
|
|
|
|
{% if script_name %}
|
|
|
|
<script type="module" src="{% static 'js/'|add:script_name %}"></script>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock scripts %}
|