Commit e50c072d authored by Trisha Angel Millena's avatar Trisha Angel Millena

Edited book_details.html: Added edit button

parent 4fa69934
...@@ -12,6 +12,10 @@ ...@@ -12,6 +12,10 @@
<p id = "Details">{{ object.ISBN }}</p> <p id = "Details">{{ object.ISBN }}</p>
<p id = "Details">{{ object.blurb }}</p> <p id = "Details">{{ object.blurb }}</p>
<form action = "../edit"> <!-- for edit button-->
<input type = "submit" value = "Add Book" />
</form>
<a href = '/bookshelf/home/'>Home</a> <a href = '/bookshelf/home/'>Home</a>
<a href = '/bookshelf/books/'>Books</a> <a href = '/bookshelf/books/'>Books</a>
<a href = '/bookshelf/authors/'>Authors</a> <a href = '/bookshelf/authors/'>Authors</a>
......
...@@ -39,4 +39,4 @@ class AuthorCreateView(CreateView): ...@@ -39,4 +39,4 @@ class AuthorCreateView(CreateView):
class BooksUpdateView(UpdateView): class BooksUpdateView(UpdateView):
model = Books model = Books
fields = "__all__" fields = "__all__"
template_name = 'bookshelf.edit-book.html' template_name = 'bookshelf/edit-book.html'
\ No newline at end of file \ No newline at end of file
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