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 @@ ...@@ -28,7 +28,12 @@
{% endif %} {% endif %}
{% endfor %} {% endfor %}
<br> <br>
<p>
<a href = "http://127.0.0.1:8000/">Home</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/books">Books</a>
<a href = "http://127.0.0.1:8000/authors">Authors</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 %} {% endblock %}
\ No newline at end of file
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</ul> </ul>
<p> <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> <a href = "http://127.0.0.1:8000/books">Books</a>
</p> </p>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -27,5 +27,10 @@ ...@@ -27,5 +27,10 @@
<a href = "http://127.0.0.1:8000/">Home</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/books">Books</a>
<a href = "http://127.0.0.1:8000/authors">Authors</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> </p>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</ul> </ul>
<p> <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> <a href = "http://127.0.0.1:8000/authors">Authors</a>
</p> </p>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -15,4 +15,8 @@ ...@@ -15,4 +15,8 @@
<a href = "http://127.0.0.1:8000/books">Books</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/authors">Authors</a>
</p> </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 %} {% 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