adjust forms for update

This commit is contained in:
Niko Abeler 2023-06-11 20:46:20 +02:00
parent aa745b1f6a
commit 4729eb88f8
3 changed files with 15 additions and 3 deletions

View File

@ -4,6 +4,10 @@
<form action="" method="post">
{% csrf_token %}
{{ form.as_p }}
{% if object %}
<input type="submit" value="Update Character">
{% else %}
<input type="submit" value="Create Character">
{% endif %}
</form>
{% endblock content %}

View File

@ -4,6 +4,10 @@
<form action="" method="post">
{% csrf_token %}
{{ form.as_p }}
{% if object %}
<input type="submit" value="Update Player">
{% else %}
<input type="submit" value="Create Player">
{% endif %}
</form>
{% endblock content %}

View File

@ -4,6 +4,10 @@
<form action="" method="post">
{% csrf_token %}
{{ form.as_p }}
{% if object %}
<input type="submit" value="Update Session">
{% else %}
<input type="submit" value="Create Session">
{% endif %}
</form>
{% endblock content %}