Commit c9d2c8d3 authored by Nics De Vega's avatar Nics De Vega

added CSS via boostrap cdn

parent 713e190e
...@@ -2,20 +2,30 @@ ...@@ -2,20 +2,30 @@
{% load static %} {% load static %}
{% block title %}{{object.first_name}} {{object.last_name}}{% endblock %} {% block title %}{{object.first_name}} {{object.last_name}}{% endblock %}
{% block content %} {% block content %}
<h3>{{object.first_name}} {{object.last_name}}</h3>
<h4>{{object.age}}</h4>
<h4>{{object.nationality}}</h4>
<p>{{object.bio}}</p>
<h3>Books by {{object.first_name}} {{object.last_name}} I love:</h3> <ul class="list-group">
<ul> <li class="list-group-item"><h3>{{object.first_name}} {{object.last_name}}</h3></li>
{% for book in object.books.all %} <li class="list-group-item"><h4>{{object.age}}</h4></li>
<li> <li class="list-group-item"><h4>{{object.nationality}}</h4></li>
<a href="{{ book.get_absolute_url }}">{{book.title}}</a> <li class="list-group-item"><p>{{object.bio}}</p></li>
<li class="list-group-item"><h3>Books by {{object.first_name}} {{object.last_name}} I love:</h3></li>
<li class="list-group-item">
<ul>
{% for book in object.books.all %}
<li>
<a href="{{ book.get_absolute_url }}">{{book.title}}</a>
</li>
{% endfor %}
</ul>
</li>
<li class="list-group-item">
<h2 class="text-center">
<small>
<a href="/bookshelf/home/">Home</a>
<a href="/bookshelf/books/">Books</a>
<a href="/bookshelf/authors/">Authors</a>
</small>
</h2>
</li> </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
...@@ -2,14 +2,19 @@ ...@@ -2,14 +2,19 @@
{% load static %} {% load static %}
{% block title %}My Favorite Authors{% endblock %} {% block title %}My Favorite Authors{% endblock %}
{% block content %} {% block content %}
<h3>Welcome to Nics' Favorite Authors:</h3> <h3>Welcome to Nics' Favorite Authors:</h3>
<ul> <ul class="list-group">
{% for object in object_list %} {% for object in object_list %}
<li> <li class="list-group-item">
<a href="{{ object.get_absolute_url }}"> {{object.first_name}} {{object.last_name}} </a> <a href="{{ object.get_absolute_url }}"> {{object.first_name}} {{object.last_name}} </a>
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
<a href="/bookshelf/home/">Home</a> <h2 class="text-center">
<a href="/bookshelf/books/">Books</a> <small>
<a href="/bookshelf/home/">Home</a>
<a href="/bookshelf/books/">Books</a>
</small>
</h2>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -2,13 +2,22 @@ ...@@ -2,13 +2,22 @@
{% load static %} {% load static %}
{% block title %}{{object.title}}{% endblock %} {% block title %}{{object.title}}{% endblock %}
{% block content %} {% block content %}
<h3>{{object.title}}</h3>
<a href ="{{ object.author.get_absolute_url }}"><h4>{{object.author}}</h4></a> <ul class="list-group">
<h4>{{object.publisher}}</h4> <li class="list-group-item"><h3 class="text-center">{{object.title}}</h3></li>
<h4>{{object.year_published}}</h4> <li class="list-group-item"><a href ="{{ object.author.get_absolute_url }}"><h4>{{object.author}}</h4></a></li>
<h4>{{object.ISBN}}</h4> <li class="list-group-item"><h4>{{object.publisher}}</h4></li>
<p>{{object.blurb}}</p> <li class="list-group-item"><h4>{{object.year_published}}</h4></li>
<a href="/bookshelf/home/">Home</a> <li class="list-group-item"><h4>{{object.ISBN}}</h4></li>
<a href="/bookshelf/books/">Books</a> <li class="list-group-item"><p>{{object.blurb}}</p></li>
<a href="/bookshelf/authors/">Authors</a> <li class="list-group-item">
<h2 class="text-center">
<small>
<a href="/bookshelf/home/">Home</a>
<a href="/bookshelf/books/">Books</a>
<a href="/bookshelf/authors/">Authors</a>
</small>
</h2>
</li>
</ul>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -2,14 +2,18 @@ ...@@ -2,14 +2,18 @@
{% load static %} {% load static %}
{% block title %}My Favorite Books{% endblock %} {% block title %}My Favorite Books{% endblock %}
{% block content %} {% block content %}
<h3>Welcome to Nics' Favorite Books:</h3> <h2 class="text-center">Welcome to Nics' Favorite Books:</h2>
<ul> <ul class="list-group">
{% for object in object_list %} {% for object in object_list %}
<li> <li class="list-group-item">
<a href="{{ object.get_absolute_url }}">{{object.title}}</a> <a href="{{ object.get_absolute_url }}">{{object.title}}</a>
</li> </li>
{% endfor %} {% endfor %}
<h2 class="text-center">
<small>
<a href="/bookshelf/home/">Home</a>
<a href="/bookshelf/authors/">Authors</a>
</small>
</h2>
</ul> </ul>
<a href="/bookshelf/home/">Home</a>
<a href="/bookshelf/authors/">Authors</a>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -2,8 +2,14 @@ ...@@ -2,8 +2,14 @@
{% load static %} {% load static %}
{% block title %}My Favorite Books{% endblock %} {% block title %}My Favorite Books{% endblock %}
{% block content %} {% block content %}
<h2>Welcome to Nics' Database of Favorite Books and Authors!</h2> <h2 class="text-center">Welcome to Nics' Database of Favorite Books and Authors!</h2>
<p>I usually like books with religious themes that make me go <b>Insane</b>. I also like Revue Starlight!</p> <br>
<a href="/bookshelf/books/">Books</a> <h4 class="text-center">I usually like books with religious themes that make me go <b>Insane</b>. I also like Revue Starlight!</p>
<a href="/bookshelf/authors/">Authors</a> <h2 class="text-center">
<small>
<a href="/bookshelf/books/">Books</a>
<a href="/bookshelf/authors/">Authors</a>
</small>
</h2>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="stylesheet" href="style.css"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<title>{% block title %}{% endblock %}</title> <title>{% block title %}{% endblock %}</title>
{% block styles %}{% endblock %} {% block styles %}{% endblock %}
</head> </head>
......
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