Commit 8298c38f authored by enricosuplico's avatar enricosuplico

updated the html files that are required to be added and updated

parent eccfcfab
{% extends 'base.html' %}
{% load static %}
{% block title %} Add New Author {% endblock %}
{% block content %}
<div> <center>
{{ form.non_field_errors }}
{% for field in form %}
{% if field.errors %}
<p> {{ field.label }} has the following errors:</p>
<ul>
{% for error in field.errors %}
<li> {{ error }} </li>
{% endfor %}
</ul>
{% endif %}
{% endfor %}
<form method = "post">
{% csrf_token %}
{% for field in form %}
{{field.label}}: {{field}}<br><br>
{% endfor %}
&nbsp;&nbsp;&nbsp;&nbsp&nbsp;<input type="submit" value="Add Author">
</form>
</center></div>
{% endblock %}
\ No newline at end of file
{% extends 'base.html' %}
{% load static %}
{% block title %} Add New Book {% endblock %}
{% block content %}
<div> <center>
{{ form.non_field_errors }}
{% for field in form %}
{% if field.errors %}
<p> {{ field.label }} has the following errors:</p>
<ul>
{% for error in field.errors %}
<li> {{ error }} </li>
{% endfor %}
</ul>
{% endif %}
{% endfor %}
<form method = "post">
{% csrf_token %}
{% for field in form %}
{{field.label}}: {{field}}<br><br>
{% endfor %}
&nbsp;&nbsp;&nbsp;&nbsp&nbsp;<input type="submit" value="Add Book">
</form>
</center> </div>
{% endblock %}
\ No newline at end of file
......@@ -2,6 +2,9 @@
{% load static %}
{% block title %} My Favorite Authors {% endblock %}
{% block content %}
<div> <center>
<h1>Enrico's Favorite Authors:</h1>
......@@ -19,9 +22,11 @@
<footer>
<br> <br>
<a href="/bookshelf/home">Home</a>
<a href="/bookshelf/home"> Home</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="/bookshelf/books">Books</a>
<a href="/bookshelf/books"> Books</a>
</footer>
</center> </div>
{% endblock %}
\ No newline at end of file
......@@ -2,6 +2,8 @@
{% load static %}
{% block title %} {{ object.first_name }} {{ object.last_name }} {% endblock %}
{% block content %}
<div> <center>
<h1> {{ object.first_name }} {{ object.last_name }} </h1>
<body>
......@@ -30,4 +32,6 @@
<a href="/bookshelf/authors">Authors
</footer>
</center> </div>
{% endblock %}
\ No newline at end of file
......@@ -2,6 +2,8 @@
{% load static %}
{% block title %} My Favorite Books {% endblock %}
{% block content %}
<div> <center>
<h1>Enrico's Favorite Books:</h1>
<body>
......@@ -13,8 +15,10 @@
</body>
<footer>
<br><br>
<a href="/bookshelf/home">Home</a>
<a href="/bookshelf/home"> Home</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="/bookshelf/authors">Authors</a>
<a href="/bookshelf/authors"> Authors</a>
</footer>
</center></div>
{% endblock %}
\ No newline at end of file
......@@ -2,6 +2,8 @@
{% load static %}
{% block title %} {{ object.title }} {% endblock %}
{% block content %}
<div> <center>
<h1>{{ object.title }}</h1>
......@@ -28,4 +30,6 @@
<a href="/bookshelf/authors">Authors
</footer>
</center> </div>
{% endblock %}
\ No newline at end of file
{% extends 'base.html' %}
{% load static %}
{% block title %} Edit Author {% endblock %}
{% block content %}
<div> <center>
{{ form.non_field_errors }}
{% for field in form %}
{% if field.errors %}
<p> {{ field.label }} has the following errors:</p>
<ul>
{% for error in field.errors %}
<li> {{ error }} </li>
{% endfor %}
</ul>
{% endif %}
{% endfor %}
<form method = "post">
{% csrf_token %}
{% for field in form %}
{{field.label}}: {{field}}<br><br>
{% endfor %}
&nbsp;&nbsp;&nbsp;&nbsp&nbsp;<input type="submit" value="Add Author">
</form>
</center></div>
{% endblock %}
\ No newline at end of file
{% extends 'base.html' %}
{% load static %}
{% block title %} Edit Book {% endblock %}
{% block content %}
<div> <center>
{{ form.non_field_errors }}
{% for field in form %}
{% if field.errors %}
<p> {{ field.label }} has the following errors:</p>
<ul>
{% for error in field.errors %}
<li> {{ error }} </li>
{% endfor %}
</ul>
{% endif %}
{% endfor %}
<form method = "post">
{% csrf_token %}
{% for field in form %}
{{field.label}}: {{field}}<br><br>
{% endfor %}
&nbsp;&nbsp;&nbsp;&nbsp&nbsp;<input type="submit" value="Add Author">
</form>
</center></div>
{% endblock %}
\ No newline at end of file
......@@ -2,20 +2,35 @@
{% load static %}
{% block title %} My Favorite Books & Authors {% endblock %}
{% block content %}
<div> <center>
<h1> Welcome to Enrico's Database of Favorite Books and Authors! </h1>
<body> The kind of Genres I enjoy from books are those that I can imagine in my head.
<br> It makes me feel as if I am part of the story.
<body>
The kind of Genres I enjoy from books are those that I can imagine in my head.
<br> <It makes me feel as if I am part of the story.
<br> I like authors who write well and are able to paint the image they want inside their reader's head.
<br> <br>
</body>
<footer>
<a href="/bookshelf/books">Books</a>
<a href="/bookshelf/books"> Books</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="/bookshelf/authors">Authors</a>
<a href="/bookshelf/authors"> Authors</a><br>
<a href="/bookshelf/books/add">Add Book</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href = "/bookshelf/authors/add">Add Author</a>
</footer>
</center> </div>
{% 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