Commit 573448a2 authored by Trisha Angel Millena's avatar Trisha Angel Millena

Edited author_details.html

parent ecd31c30
......@@ -2,13 +2,26 @@
{% load static %}
{% block title %}My Favorite Authors{% endblock %}
{% block title %}{{ object.first_name }} {{ object.last_name }}{% endblock %}
{% block content %}
<h1>{{ object.first_name }} {{ object.last_name }}</h1>
<p>{{ object.age }}</p>
<p>{{ object.nationality }}</p>
<p>{{ object.bio }}</p>
<h1>Trisha's Favorite Authors</h1>
<p>Books by {{ object.first_name }} {{ object.last_name }} that I love:</p>
<ul>
{% for object in object_list %}
<li style = "list-style-type: circle">
{% for book in object.books_set.all %}
<li>
<a href = '{{ book.get_absolute_url }}'>
{{ book.title }}
</a>
</li>
{% endfor %}
</ul>
<a href='/bookshelf/home/'>Home</a>
<a href='/bookshelf/books/'>Books</a>
<a href='/bookshelf/authors/'>Authors</a>
{% endblock %}
\ No newline at end of file
......@@ -9,7 +9,7 @@
{% for object in object_list %}
<li>
<a href = '{{ object.get_absolute_url }}'>
{{ object.first_name }}
{{ object.first_name }}{{ object.last_name }}
</a>
</li>
{% endfor %}
......
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