Commit bb23d8c7 authored by Ysabella Panghulan's avatar Ysabella Panghulan

added Edit Author button

parent 947c7f15
{%extends 'base.html'%} {%extends 'base.html'%}
{% block stylesheets %} {% block stylesheets %}
{% load static %} {% load static %}
<link rel="stylesheet" type="text/css" href="{% static 'stylesheets/author_details.css' %}"> <link rel="stylesheet" type="text/css" href="{% static 'stylesheets/author_details.css' %}">
{% endblock %} {% endblock %}
{% block title %}{{ object }}{% endblock %} {% block title %}{{ object }}{% endblock %}
{% block header %} {% block header %}
<h2>{{ object }}</h2> <h2>{{ object }}</h2>
{% endblock %} {% endblock %}
{% block body %} {% block body %}
<div class="author-content"> <div class="author-content">
{% block content %} {% block content %}
<div class="author-tags"> <div class="author-tags">
<div class="author-tag"> <div class="author-tag">
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
</div> </div>
</div> </div>
<p>{{ object.bio }}</p> <p>{{ object.bio }}</p>
<a href="{{object.get_absolute_url}}edit" class="btn-primary">Edit Author</a>
<h3>Books by {{ object }} I love:</h3> <h3>Books by {{ object }} I love:</h3>
<div class="book-list"> <div class="book-list">
<ol> <ol>
...@@ -38,5 +39,5 @@ ...@@ -38,5 +39,5 @@
<a href="/authors/" class="btn-primary">Authors</a> <a href="/authors/" class="btn-primary">Authors</a>
</div> </div>
{% endblock %} {% endblock %}
</div> </div>
{% endblock %} {% 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