Commit fea21e8e authored by KaoruSawade's avatar KaoruSawade

Added 'edit' buttons to author & books details pages, placeholders w/o links yet

parent 67815043
...@@ -6,7 +6,12 @@ ...@@ -6,7 +6,12 @@
<p>{{ author.age }}</p> <p>{{ author.age }}</p>
<p>{{ author.nationality }}</p> <p>{{ author.nationality }}</p>
<p>{{ author.bio }}</p> <p>{{ author.bio }}</p>
<h3>Books by {{ author.first_name }} {{ author.last_name }} I love: <br>
<form action='[insert link to edit-author]' >
<input type="submit" value="Edit Author" />
</form>
<br>
<h3>Books by {{ author.first_name }} {{ author.last_name }} I love:<h3>
<ul> <ul>
{%for book in book_list%} {%for book in book_list%}
<li><a href={{ book.get_absolute_url }}>{{ book.title }}</a></li> <li><a href={{ book.get_absolute_url }}>{{ book.title }}</a></li>
......
...@@ -8,6 +8,11 @@ ...@@ -8,6 +8,11 @@
<p>{{ book.year_published }}</p> <p>{{ book.year_published }}</p>
<p>{{ book.ISBN }}</p> <p>{{ book.ISBN }}</p>
<p>{{ book.blurb }}</p> <p>{{ book.blurb }}</p>
<br>
<form action='[insert link to edit-book]' >
<input type="submit" value="Edit Book" />
</form>
<br>
{% endblock %} {% endblock %}
{% block navbar %} {% block navbar %}
<ul class="navbarList"> <ul class="navbarList">
......
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