Updated content for home.html

parent af691f04
...@@ -18,14 +18,20 @@ ...@@ -18,14 +18,20 @@
</p> </p>
<div class="flex-parent jc-center"> <div class="flex-parent jc-center">
<button onclick="location.href = 'books/'" class="blue margin-right">Books</button> <a href="{% url 'bookshelf:books' %}" type="button" class="jc-center">Books</a>
<button onclick="location.href = 'authors/'" class="pink">Authors</button> <a href="{% url 'bookshelf:authors' %}" type="button" class="margin-right">Authors</a>
</div> </div>
<div class="flex-parent jc-center"> <div class="flex-parent jc-center">
<button onclick="location.href = 'books/add'">Add Book</button> <form method="post" action="books/add">
<button onclick="location.href = 'authors/add'">Add Author</button> {% csrf_token %}
<button type="submit">Add Book</button>
</form>
<form method="post" action="authors/add">
{% csrf_token %}
<button type="submit">Add Author</button>
</form>
</div> </div>
</body> </body>
......
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