Commit 54fa928c authored by Brendan Fausto's avatar Brendan Fausto

Fixed home URL error in Authors & Books page, and added buttons to edit author and book

parent efc2d905
......@@ -28,7 +28,12 @@
{% endif %}
{% endfor %}
<br>
<a href = "http://127.0.0.1:8000/">Home</a>
<a href = "http://127.0.0.1:8000/books">Books</a>
<a href = "http://127.0.0.1:8000/authors">Authors</a>
<p>
<a href = "http://127.0.0.1:8000/">Home</a>
<a href = "http://127.0.0.1:8000/books">Books</a>
<a href = "http://127.0.0.1:8000/authors">Authors</a>
</p>
<p>
<button onclick="window.location.href='../../../authors/{{object.pk}}/edit';">Edit Author</button><br/>
</p>
{% endblock %}
\ No newline at end of file
......@@ -21,7 +21,7 @@
</ul>
<p>
<a href = "http://127.0.0.1:8000/">Home</a>
<a href = "http://127.0.0.1:8000/home">Home</a>
<a href = "http://127.0.0.1:8000/books">Books</a>
</p>
{% endblock %}
\ No newline at end of file
......@@ -24,8 +24,13 @@
</ul>
<p>
<a href = "http://127.0.0.1:8000/">Home</a>
<a href = "http://127.0.0.1:8000/books">Books</a>
<a href = "http://127.0.0.1:8000/authors">Authors</a>
<a href = "http://127.0.0.1:8000/">Home</a>
<a href = "http://127.0.0.1:8000/books">Books</a>
<a href = "http://127.0.0.1:8000/authors">Authors</a>
</p>
<p>
<button onclick="window.location.href='../../../books/{{object.pk}}/edit';">Edit Book</button><br/>
</p>
{% endblock %}
\ No newline at end of file
......@@ -21,7 +21,7 @@
</ul>
<p>
<a href = "http://127.0.0.1:8000/">Home</a>
<a href = "http://127.0.0.1:8000/home">Home</a>
<a href = "http://127.0.0.1:8000/authors">Authors</a>
</p>
{% endblock %}
\ No newline at end of file
......@@ -15,4 +15,8 @@
<a href = "http://127.0.0.1:8000/books">Books</a>
<a href = "http://127.0.0.1:8000/authors">Authors</a>
</p>
<p>
<a href = "http://127.0.0.1:8000/books/add">Add Book</a>
<a href = "http://127.0.0.1:8000/authors/add">Add Author</a>
</p>
{% endblock %}
\ No newline at end of file
No preview for this file type
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