Commited author, author_detail and books detail as they were buggy before commiting

parent b32808c9
Pipeline #3074 canceled with stages
{% extends 'base.html' %} {% extends 'base.html' %}
{% load static %}
{% block title %}{% endblock %} {% block title %} My Favorite Authors{% endblock %}
{% block header %} header {% endblock %} {% block header %}Dani's Favorite Authors:{% endblock %}
{% block body %} body {% endblock %}
{% block body %}
<ul>
{% for author in object_list %}
<li>
<a href="/bookshelf/author/{{ author.pk }}/details/"> {{ author.first_name }} {{ author.last_name }} </a><br>
</li>
{% endfor %}
</ul>
<br>
<a href="/bookshelf">Home</a>----------------------------------------------
<a href="/bookshelf/books">Books</a>
{% endblock %}
{% extends 'base.html' %} {% extends 'base.html' %}
{% load static %} {% load static %}
{% block title %}{% endblock %} {% block title %} {{object.first_name}} {{object.last_name}}{% endblock %}
{% block header %} header {% endblock %} {% block header %} {{object.first_name}} {{object.last_name}} {% endblock %}
{% block body %} body {% endblock %} {% block body %}
\ No newline at end of file <p>{{object.age}}</p>
<p>{{object.nationality}}</p>
<p>{{object.bio}}</p>
<p><b>Books by {{object.first_name}} {{object.last_name}} I love:</b></p>
<ul>
{% for book in object.books_set.all %}
<li>
<a href="/bookshelf/books/{{ book.pk }}/details/"> {{ book.title }} </a><br>
</li>
{% endfor %}
</ul>
<a href="/bookshelf/">Home</a>
<a href="/bookshelf/books/">Books</a>
<a href="/bookshelf/author/">Author</a>
{% endblock %}
\ No newline at end of file
{% extends 'base.html' %} {% extends 'base.html' %}
{% load static %} {% load static %}
{% block title %}{% endblock %} {% block title %} {{object.title}} {% endblock %}
{% block header %} header {% endblock %} {% block header %} {{object.title}} {% endblock %}
{% block body %} body {% endblock %} {% block body %}
\ No newline at end of file <a href="/bookshelf/author/{{object.author.pk}}/details/">{{object.author}}</a><br>
<p>{{object.publisher}}</p>
<p>{{object.year_published}}</p>
<p>{{object.ISBN}}</p>
<p>{{object.blurb}}</p>
<a href="/bookshelf/">Home</a>
<a href="/bookshelf/books/">Books</a>
<a href="/bookshelf/author/">Author</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