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 }}
|
||||
<input type="submit" value="Create Character">
|
||||
{% 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 }}
|
||||
<input type="submit" value="Create Player">
|
||||
{% 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 }}
|
||||
<input type="submit" value="Create Session">
|
||||
{% if object %}
|
||||
<input type="submit" value="Update Session">
|
||||
{% else %}
|
||||
<input type="submit" value="Create Session">
|
||||
{% endif %}
|
||||
</form>
|
||||
{% endblock content %}
|
Loading…
Reference in New Issue