adjust forms for update
This commit is contained in:
parent
aa745b1f6a
commit
4729eb88f8
|
@ -4,6 +4,10 @@
|
||||||
<form action="" method="post">
|
<form action="" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{{ form.as_p }}
|
{{ form.as_p }}
|
||||||
<input type="submit" value="Create Character">
|
{% if object %}
|
||||||
|
<input type="submit" value="Update Character">
|
||||||
|
{% else %}
|
||||||
|
<input type="submit" value="Create Character">
|
||||||
|
{% endif %}
|
||||||
</form>
|
</form>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
|
@ -4,6 +4,10 @@
|
||||||
<form action="" method="post">
|
<form action="" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{{ form.as_p }}
|
{{ form.as_p }}
|
||||||
<input type="submit" value="Create Player">
|
{% if object %}
|
||||||
|
<input type="submit" value="Update Player">
|
||||||
|
{% else %}
|
||||||
|
<input type="submit" value="Create Player">
|
||||||
|
{% endif %}
|
||||||
</form>
|
</form>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
|
@ -4,6 +4,10 @@
|
||||||
<form action="" method="post">
|
<form action="" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{{ form.as_p }}
|
{{ form.as_p }}
|
||||||
<input type="submit" value="Create Session">
|
{% if object %}
|
||||||
|
<input type="submit" value="Update Session">
|
||||||
|
{% else %}
|
||||||
|
<input type="submit" value="Create Session">
|
||||||
|
{% endif %}
|
||||||
</form>
|
</form>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
Loading…
Reference in New Issue