.githooks
.github
.vscode
common
games
fixtures
graphql
migrations
static
templates
cotton
partials
registration
add.html
add_edition.html
add_game.html
add_purchase.html
add_session.html
base.html
index.html
list_purchases.html
list_sessions.html
navbar.html
stats.html
view_game.html
templatetags
views
__init__.py
admin.py
apps.py
forms.py
models.py
schema.py
tests.py
urls.py
tests
timetracker
.dockerignore
.drone.yml
.editorconfig
.envrc
.gitignore
.pre-commit-config.yaml
CHANGELOG.md
Caddyfile
Dockerfile
Makefile
README.md
docker-compose.no-caddy.yml
docker-compose.yml
entrypoint.sh
manage.py
package.json
poetry.lock
pyproject.toml
shell.nix
streak_bruteforce.py
tailwind.config.js
43 lines
1.3 KiB
HTML
43 lines
1.3 KiB
HTML
{% extends "base.html" %}
|
|
{% load static %}
|
|
{% block title %}
|
|
{{ title }}
|
|
{% endblock title %}
|
|
{% block content %}
|
|
<form method="post" enctype="multipart/form-data">
|
|
<table class="mx-auto">
|
|
{% 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"
|
|
name="submit_and_redirect"
|
|
value="Submit & Create Session" />
|
|
</td>
|
|
</tr>
|
|
{% if purchase_id %}
|
|
<tr>
|
|
<td></td>
|
|
<td>
|
|
<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>
|
|
</td>
|
|
</tr>
|
|
{% endif %}
|
|
</table>
|
|
</form>
|
|
{% endblock content %}
|
|
{% block scripts %}
|
|
{% if script_name %}
|
|
<script type="module" src="{% static 'js/'|add:script_name %}"></script>
|
|
{% endif %}
|
|
{% endblock scripts %}
|