Commit bdc80354 authored by Joaquin Hermosisima's avatar Joaquin Hermosisima

created and edited templates/bookshelf

parent 81197049
{% extends "base.html" %}
{%block title%}{{object.first_name}} {{object.last_name}}{%endblock%}
{% block content %}
<h2>{{object.first_name}} {{object.last_name}}</h2>
<ul>
<li>{{object.age}}</li>
<li>{{object.nationality}}</li>
<li>{{object.bio}}</li>
</ul>
<h3>Books by {{object.first_name}} {{object.last_name}} I love:</h3>
<br>
<ul>
{% for item in book_list %}
<li><a href="../../book/{{item.pk}}/details"">{{item.title}}</a></li>
{% endfor %}
</ul>
<br><br><br>
{% for url in url_list %}
<a href="../../{{url}}">{{url}}</a>
{% endfor %}
{% endblock %}
\ No newline at end of file
{% extends "base.html" %}
{%block title%}My Favorite Authors{%endblock%}
{% block content %}
<h2>{{nickname}}'s Favorite Authors:</h2>
{%for object in object_list%}
<li><a href="{{object.get_absolute_url}}">{{object}}</a></li>
{%endfor%}
<br><br><br>
{% for url in url_list %}
<a href="../../{{url}}">{{url}}</a>
{% endfor %}
{% endblock %}
\ No newline at end of file
{% extends "base.html" %}
{% block title %}{{object.title}}{% endblock %}
{% block content %}
<h2>{{object.title}}</h2>
<ul>
<a href="{{object.author.get_absolute_url}}"><li>{{object.author}}</li></a>
<li>{{object.publisher}}</li>
<li>{{object.year_published}}</li>
<li>{{object.ISBN}}</li>
<li>{{object.blurb}}</li>
</ul>
<br><br><br>
{% for url in url_list %}
<a href="../../{{url}}">{{url}}</a>
{% endfor %}
{% endblock %}
\ No newline at end of file
{% extends "base.html" %}
{% block title %}{{title}}{% endblock %}
{% block content %}
<h2>{{nickname}}'s Favorite Books</h2>
{%for object in object_list%}
<li><a href="{{object.get_absolute_url}}">{{object.title}}</a></li>
{%endfor%}
<br><br><br>
{% for url in url_list %}
<a href="../{{url}}">{{url}}</a>
{% endfor %}
{% 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