Commit c3809b7b authored by Jan Ericsson Ong Ang's avatar Jan Ericsson Ong Ang

Created Edit Book and Edit Author Buttons

parent daa370a6
...@@ -9,6 +9,12 @@ ...@@ -9,6 +9,12 @@
<p>{{ author.nationality }}</p> <p>{{ author.nationality }}</p>
<p>{{ author.bio }}</p> <p>{{ author.bio }}</p>
<button type="button">
<a href="/bookshelf/books/{{ book.id }}/edit/">
Edit Book
</a>
</button><br>
<p>Books by {{ author.first_name }} {{ author.last_name }} I love</p> <p>Books by {{ author.first_name }} {{ author.last_name }} I love</p>
{% for authbook in author.books_set.all %} {% for authbook in author.books_set.all %}
......
...@@ -10,6 +10,11 @@ ...@@ -10,6 +10,11 @@
<p>{{ books.year_published }}</p> <p>{{ books.year_published }}</p>
<p>{{ books.ISBN }}</p> <p>{{ books.ISBN }}</p>
<p>{{ books.blurb }}</p> <p>{{ books.blurb }}</p>
<button type="button">
<a href="/bookshelf/books/{{ book.id }}/edit/">
Edit Book
</a>
</button><br>
<a href="/bookshelf/">Home</a>&nbsp;&nbsp; <a href="/bookshelf/">Home</a>&nbsp;&nbsp;
<a href="/bookshelf/books/">Books</a>&nbsp;&nbsp; <a href="/bookshelf/books/">Books</a>&nbsp;&nbsp;
......
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