Modified format of the form

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