Commit 644f838f authored by Tanya Yotoko's avatar Tanya Yotoko

Edited html files with the necessary information

parent ea85720d
{% extends 'base.html' %}
{% block title %}Add New Author{% endblock %}
{% block content %}
<form method="post">
{% csrf_token %}
{% for field in form %}
<br>
{{field.label}}:{{field}}
<br>
{% endfor %}
<input type="submit" value="Add Author">
</form>
{% endblock %}
\ No newline at end of file
{% extends 'base.html' %}
{% block title %}Add New Book{% endblock %}
{% block content %}
<form method="post">
{% csrf_token %}
{% for field in form %}
<br>
{{field.label}}:{{field}}
<br>
{% endfor %}
<input type="submit" value="Add Book">
</form>
{% endblock %}
\ No newline at end of file
...@@ -18,6 +18,9 @@ ...@@ -18,6 +18,9 @@
</ul> </ul>
<h2> <h2>
<a href="/bookshelf/authors/{{object.pk}}/edit/" class="btn btn-primary" role="button">Edit Author</a>
<br>
<br>
<a href ="/bookshelf/home/" class="btn btn-primary" role="button"> Home </a> <a href ="/bookshelf/home/" class="btn btn-primary" role="button"> Home </a>
<a href ="/bookshelf/books/" class="btn btn-primary" role="button"> Books </a> <a href ="/bookshelf/books/" class="btn btn-primary" role="button"> Books </a>
<a href ="/bookshelf/authors/" class="btn btn-primary" role="button"> Authors </a> <a href ="/bookshelf/authors/" class="btn btn-primary" role="button"> Authors </a>
......
...@@ -10,6 +10,9 @@ ...@@ -10,6 +10,9 @@
<li> <h4> {{object.ISBN}} </h4> </li> <li> <h4> {{object.ISBN}} </h4> </li>
<li> <h4> {{object.blurb}} </h4> </li> <li> <h4> {{object.blurb}} </h4> </li>
<a href="/bookshelf/books/{{object.pk}}/edit/" class="btn btn-primary" role="button">Edit Book</a>
<br>
<br>
<a href ="/bookshelf/home/" class="btn btn-primary" role="button"> Home </a> <a href ="/bookshelf/home/" class="btn btn-primary" role="button"> Home </a>
<a href ="/bookshelf/books/" class="btn btn-primary" role="button"> Books </a> <a href ="/bookshelf/books/" class="btn btn-primary" role="button"> Books </a>
<a href ="/bookshelf/authors/" class="btn btn-primary" role="button"> Authors </a> <a href ="/bookshelf/authors/" class="btn btn-primary" role="button"> Authors </a>
......
{% extends 'base.html' %}
{% block title %}Edit Author{% endblock %}
{% block content %}
<form method="post">
{% csrf_token %}
{% for field in form %}
<br>
{{field.label}}:{{field}}
<br>
{% endfor %}
<input type="submit" value="Edit Author">
</form>
{% endblock %}
\ No newline at end of file
{% extends 'base.html' %}
{% block title %}Edit Book{% endblock %}
{% block content %}
<form method="post">
{% csrf_token %}
{% for field in form %}
<br>
{{field.label}}:{{field}}
<br>
{% endfor %}
<input type="submit" value="Edit Book">
</form>
{% 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