Updated author-detail.html for edit button

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