Commit 5913a0f5 authored by RJC's avatar RJC

added and formatted author_detail.html to templates

parent d9b80e22
{% extends 'base.html' %}
{% block title %}{{ authors.first_name }} {{ authors.last_name }}{% endblock %}
{% block header %}{{ authors.first_name }} {{ authors.last_name }}{% endblock %}
{% block content %}
<p>{{ authors.age }}</p><br>
<p>{{ authors.nationality }}</p><br>
<p>{{ authors.bio }}</p><br>
<h2>Books by {{ authors.first_name }} {{ authors.last_name }} I love <3:</h2>
{% for books in authors.books.all %}
<a href="http://127.0.0.1:8000/books/{{ books.pk }}">{{ books.title }}</a><br>
{% endfor %}
<br>
<a href="http://127.0.0.1:8000/homepage/">Home</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://127.0.0.1:8000/books/">Books</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://127.0.0.1:8000/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