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

Edited author_details.html

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