Commit e95e8530 authored by Gabriel G. Garrero's avatar Gabriel G. Garrero

Added edit book button in book_details.html, added spaces in add-author.html...

Added edit book button in book_details.html, added spaces in add-author.html and add-book.html to follow clean code principles
parent 2edea7af
...@@ -18,10 +18,10 @@ ...@@ -18,10 +18,10 @@
{% endif %} {% endif %}
{% endfor %} {% endfor %}
<form method="POST"> <form method = "POST">
{% csrf_token %} {% csrf_token %}
{{form.as_p}} {{form.as_p}}
<input type="submit" value="Add Author"> <input type = "submit" value = "Add Author">
</form> </form>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<form method="POST"> <form method="POST">
{% csrf_token %} {% csrf_token %}
{{form.as_p}} {{form.as_p}}
<input type="submit" value="Add Book"> <input type = "submit" value = "Add Book">
</form> </form>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -12,6 +12,10 @@ ...@@ -12,6 +12,10 @@
<p>{{ object.ISBN }}</p> <p>{{ object.ISBN }}</p>
<p>{{ object.blurb }}</p> <p>{{ object.blurb }}</p>
<form action = "./edit">
<input type = "submit" value = "Edit Book">
</form>
<div class = "links"> <div class = "links">
<a class = "flex-items" href = '/bookshelf/home/'>Home</a> <a class = "flex-items" href = '/bookshelf/home/'>Home</a>
<a class = "flex-items" href = '/bookshelf/books/'>Books</a> <a class = "flex-items" href = '/bookshelf/books/'>Books</a>
......
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