Commit 5cab9d3b authored by KaoruSawade's avatar KaoruSawade

Created books_list and books_detail templates

parent 88da925f
Pipeline #3051 canceled with stages
{% extends 'base.html' %}
{% load static %}
{% block title %}{{ book.title }}{% endblock %}
{% block content %}
<h2>{{ book.title }}</h2>
<p><a href={{ author.get_absolute_url }}>{{ author.first_name }} {{ author.last_name }}</a></p>
<p>{{ book.publisher }}</p>
<p>{{ book.year_published }}</p>
<p>{{ book.ISBN }}</p>
<p>{{ book.blurb }}</p>
{% endblock %}
{% block navbar %}
<ul class="navbarList">
<li class="navbarItem"><a href="/home">Home</a></li>
<li class="navbarItem"><a href="/books">Books</a></li>
<li class="navbarItem"><a href="/authors">Authors</a></li>
</ul>
{% endblock %}
{% extends 'base.html' %}
{% load static %}
{% block title %}My Favorite Books{% endblock %}
{% block content %}
<h2>{{name}}'s Favorite Books:</h2>
<ul>
{% for book in books_list %}
<li><a href="{{ book.get_absolute_url }}">{{ book.title }}</a></li>
{% endfor %}
</ul>
{% endblock %}
{% block navbar %}
<ul class="navbarList">
<li class="navbarItem"><a href="/home">Home</a></li>
<li class="navbarItem"><a href="/authors">Authors</a></li>
</ul>
{% endblock %}
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