Commit 174b4b97 authored by Deokhyun Lee's avatar Deokhyun Lee

html for edit-author has been correctly set up.

parent 8f7b159e
{% extends 'base.html'%}
{% block title %}
Add New Author
{% endblock %}
......
......@@ -16,6 +16,7 @@
{{author.nationality}}<br>
{{author.bio}}<br>
</ul>
<li ><button type="button" onclick="window.location.href='/authors/{{author.pk}}/edit'">Edit Author</button></li>
<h3>Books by {{author.first_name}} {{author.last_name}} I love: </h3>
{% if books %}
<ul>
......
{% extends 'base.html'%}
{% block title %}
Add New Author
{% endblock %}
{% block content %}
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<button type="submit">Save Changes</button>
</form>
{% endblock %}
\ No newline at end of file
......@@ -23,7 +23,7 @@
<p>No Available Books.</p>
{% endif %}
<ul>
<li ><button type="button" onclick="window.location.href='/books/{{book.pk}}/edit'">Edit Books</button></li>
<li ><button type="button" onclick="window.location.href='/books/{{book.pk}}/edit'">Edit Book</button></li>
<li><a href="/home">Home</a>&nbsp&nbsp&nbsp&nbsp&nbsp<a href="/books">Books</a>&nbsp&nbsp&nbsp&nbsp&nbsp<a href="/authors">Authors</a></li>
</ul>
{% 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