Updated author-detail.html for edit button

parent 86518a95
......@@ -7,10 +7,14 @@
<head>
<h1><u>{{author.first_name}} {{author.last_name}}</u></h1>
<h2 >{{ author.age }} years old</h2>
<h2>Nationality: {{ author.nationality }} </h2>
<h2>{{ author.nationality }} </h2>
<h2>Bio: <br> {{ author.bio }} </h2>
</head>
<div class="flex-parent jc-center">
<a href="{% url 'bookshelf:edit_author' author.id %}" type="button" class="btn btn-outline-secondary">Edit Author</a>
</div>
<body>
<p> Books by {{author.first_name}} {{author.last_name}} I love:
<ul>
......@@ -24,10 +28,9 @@
</ul>
</p>
<div class="flex-parent jc-center">
<button onclick="location.href = '/bookshelf/home'" class="green margin-left">Home</button>
<button onclick="location.href = '/bookshelf/home/books'" class="blue">Books</button>
<button onclick="location.href = '/bookshelf/home/authors'" class="pink margin-right">Authors</button>
<div class = "flex-parent jc-center">
<a href="{% url 'bookshelf:home' %}" type="button" class="margin-left">Home</a>
<a href="{% url 'bookshelf:books' %}" type="button" class="jc-center">Books</a>
</div>
</body>
......
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