Commit d7b47230 authored by Jan Ericsson Ong Ang's avatar Jan Ericsson Ong Ang

edited templates for home & book & author details

parent 035856cd
{% extends 'base.html' %}
{% block title %}{{ author.first_name }} {{ author.last_name }}{% endblock %}
{% block header %}{{ author.first_name }} {{ author.last_name }}{% endblock %}
{% block content %}
<p>{{ author.age }}</p>
<p>{{ author.nationality }}</p>
<p>{{ author.bio }}</p>
<p>{{ author.age }}</p>
<p>Books by {{ author.first_name }} {{ author.last_name }} I love</p>
<a href="/books/1/details">Home</a><br>
<a href="/books/2/details">Home</a><br>
<a href="/books/3/details">Home</a><br>
<a href="/homepage/">Home</a>&nbsp;&nbsp;
<a href="/books/">Books</a>&nbsp;&nbsp;
<a href="/authors/">Authors</a>
{% endblock %}
\ No newline at end of file
{% extends 'base.html' %}
{% block title %}{{ books.title }}{% endblock %}
{% block header %}{{ books.title }}{% endblock %}
{% block content %}
<a href="/authors/{{ books.author.pk }}/details/">{{ books.author.pk }}</a><br>
<p>{{ books.publisher }}</p>
<p>{{ books.year_published }}</p>
<p>{{ books.year_ISBN }}</p>
<p>{{ books.year_blurb }}</p>
<a href="/homepage/">Home</a>&nbsp;&nbsp;
<a href="/books/">Books</a>&nbsp;&nbsp;
<a href="/authors/">Authors</a>
{% endblock %}
\ No newline at end of file
{% extends 'base.html' %}
{% block title %} My Favorite Books & Authors!{% endblock %}
{% block header %}Welcome to Jan's Database of Favorite Books and Author's! {% endblock %}
{% block content %}
<p>
I love fiction novels that are able to tell a story really well. A book that is able to keep me interested throughout every page is what I love!
</p>
<a href="/books/">Books</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="/authors/">Authors</a>
{% 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