Commit ed2bb3e6 authored by Albert Gagalac's avatar Albert Gagalac

added various buttons on most pages

parent fad54cde
...@@ -10,5 +10,9 @@ ...@@ -10,5 +10,9 @@
{% csrf_token %} {% csrf_token %}
{{ form.as_p }} {{ form.as_p }}
<input type="submit" value="Add Author"> <input type="submit" value="Add Author">
</form> </form><br><br>
<button type="button" name="button">
<a href="{% url 'bookshelf:home'%}"class="btn btn-dark">Go Home</a>
</button>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -10,5 +10,9 @@ ...@@ -10,5 +10,9 @@
{% csrf_token %} {% csrf_token %}
{{ form.as_p }} {{ form.as_p }}
<input type="submit" value="Add Book"> <input type="submit" value="Add Book">
</form> </form> <br><br>
<button type="button">
<a href="{% url 'bookshelf:home' %}">Go Home</a>
</button>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -17,15 +17,18 @@ ...@@ -17,15 +17,18 @@
{% block content %} {% block content %}
<h3>Age:</h3> {{object.age}}<br> <h3>Age:</h3> {{object.age}}<br>
<h3>Nationality:</h3> {{object.nationality}}<br> <h3>Nationality:</h3> {{object.nationality}}<br>
<h3>Bio:</h3> {{object.bio}} <h3>Bio:</h3> {{object.bio}}<br><br>
<h1>Books by {{object}} I love:</h1> <button type="button">
<a href="{% url 'bookshelf:author-edit' pk=object.pk %}"class="btn btn-primary">Edit Author</a>
</button>
<h3>Books by {{object}} I love:</h3>
{% for book in book_list %} {% for book in book_list %}
<a href="{{ book.get_absolute_url }}"> <a href="{{ book.get_absolute_url }}">
{{book.title}} {{book.title}}
</a> </a>
<br><br>
{% endfor %} {% endfor %}
<br><br><br><a href="/home/ ">Home</a> | <a href="/books/ ">Books</a> | <a href="/authors/ ">Authors</a> <br><br><br><a href="/home/ ">Home</a> | <a href="/books/ ">Books</a> | <a href="/authors/ ">Authors</a>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -19,5 +19,10 @@ ...@@ -19,5 +19,10 @@
<h3>ISBN:</h3> {{object.ISBN}} <h3>ISBN:</h3> {{object.ISBN}}
<h3>Blurb:</h3> {{object.blurb}} <h3>Blurb:</h3> {{object.blurb}}
<br><br><br><a href="/home/ ">Home</a> | <a href="/books/ ">Books</a> | <a href="/authors/ ">Authors</a> <br><br><br><a href="/home/ ">Home</a> | <a href="/books/ ">Books</a> | <a href="/authors/ ">Authors</a><br><br>
<button type="button">
<a href="{% url 'bookshelf:books-edit' pk=object.pk %}"class="btn btn-primary">Edit "{{ object }}"</a>
</button>
{% endblock %} {% endblock %}
\ 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