Created book_detail.html

parent 2f7ec081
{% extends "base.html" %}
{% block page-title %} {{book.title}} {% endblock %}
{% block content %}
<head>
<h1><u>{{ book.title }}</u></h1>
<h2 >by <a href="{% url 'bookshelf:author_detail' book.author.id %}">{{ book.author.first_name }} {{ book.author.last_name }}</a></h2>
<h2>published by {{ book.publisher }} </h2>
<h2>published on {{ book.year_published }} </h2>
<h2>ISBN : {{ book.ISBN }} </h2>
<h2> "{{ book.blurb }}" </h2>
</head>
<body>
<div class="flex-parent jc-center">
<button onclick="location.href = '/bookshelf/home'" class="green margin-left">Home</button>
<button onclick="location.href = '/bookshelf/home/books'" class="blue">Books</button>
<button onclick="location.href = '/bookshelf/home/authors'" class="pink margin-right">Authors</button>
</div>
</body>
{% 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