Created HTML tempaltes for new webpages

parent 82332821
{% extends 'base.html' %}
{% block title %} Add New Author {% endblock %}
{% block header %} {% endblock %}
{% block content %}
<form action="" method=POST>
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Add Author">
</form>
{% endblock %}
{% block navbar %}
{% endblock %}
\ No newline at end of file
{% extends 'base.html' %}
{% block title %} Add New Book {% endblock %}
{% block header %} {% endblock %}
{% block content %}
<form action="" method=POST>
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Add Book">
</form>
{% endblock %}
{% block navbar %}
{% endblock %}
\ No newline at end of file
...@@ -18,6 +18,9 @@ ...@@ -18,6 +18,9 @@
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
<li>
<a href="{{ author.get_update_url }}" class = "item">Edit Author</a>
</li>
{% endblock %} {% endblock %}
{% block navbar %} {% block navbar %}
......
...@@ -17,6 +17,9 @@ ...@@ -17,6 +17,9 @@
{{ books.ISBN }} <br> {{ books.ISBN }} <br>
{{ books.blurb }} <br> {{ books.blurb }} <br>
</p> </p>
<li>
<a href="{{ books.get_update_url }}" class = "item">Edit Book</a>
</li>
{% endblock %} {% endblock %}
{% block navbar %} {% block navbar %}
......
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