adjust forms for update
This commit is contained in:
parent
aa745b1f6a
commit
4729eb88f8
|
@ -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 %}
|
|
@ -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 %}
|
|
@ -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 %}
|
Loading…
Reference in New Issue