Modified format of the form

parent ddd15499
......@@ -5,8 +5,11 @@
{% block content %}
<form method="POST" action="{% url 'bookshelf:add_book' %}" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
<button class="button" type="Add Book">Add Book</button>
<table>
{{ form.as_table }}
</table>
<br>
<br>
<button class="button" type="Add Book" class="green margin-right">Add Book</button>
</form>
{% endblock %}
\ No newline at end of file
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