Modified format of the form

parent 251ed49b
...@@ -5,7 +5,11 @@ ...@@ -5,7 +5,11 @@
{% block content %} {% block content %}
<form method="POST"> <form method="POST">
{% csrf_token %} {% csrf_token %}
{{form.as_p}} <table>
{{ form.as_table }}
</table>
<br>
<br>
<button class="button" type="submit">Save Changes</button> <button class="button" type="submit">Save Changes</button>
</form> </form>
{% endblock %} {% endblock %}
...@@ -5,7 +5,11 @@ ...@@ -5,7 +5,11 @@
{% block content %} {% block content %}
<form method="POST"> <form method="POST">
{% csrf_token %} {% csrf_token %}
{{form.as_p}} <table>
{{ form.as_table }}
</table>
<br>
<br>
<button class="button" type="submit">Save Changes</button> <button class="button" type="submit">Save Changes</button>
</form> </form>
{% endblock %} {% endblock %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment