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 @@
</li>
{% endfor %}
</ul>
<li>
<a href="{{ author.get_update_url }}" class = "item">Edit Author</a>
</li>
{% endblock %}
{% block navbar %}
......
......@@ -17,6 +17,9 @@
{{ books.ISBN }} <br>
{{ books.blurb }} <br>
</p>
<li>
<a href="{{ books.get_update_url }}" class = "item">Edit Book</a>
</li>
{% endblock %}
{% 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