Commit bb23d8c7 authored by Ysabella Panghulan's avatar Ysabella Panghulan

added Edit Author button

parent 947c7f15
{%extends 'base.html'%}
{% block stylesheets %}
{% load static %}
<link rel="stylesheet" type="text/css" href="{% static 'stylesheets/author_details.css' %}">
{% load static %}
<link rel="stylesheet" type="text/css" href="{% static 'stylesheets/author_details.css' %}">
{% endblock %}
{% block title %}{{ object }}{% endblock %}
{% block header %}
<h2>{{ object }}</h2>
<h2>{{ object }}</h2>
{% endblock %}
{% block body %}
<div class="author-content">
{% block content %}
<div class="author-tags">
<div class="author-tag">
<h4>Age: {{ object.age }}</h4>
</div>
<div class="author-tag">
<h4>Nationality: {{ object.nationality }}</h4>
</div>
<div class="author-content">
{% block content %}
<div class="author-tags">
<div class="author-tag">
<h4>Age: {{ object.age }}</h4>
</div>
<p>{{ object.bio }}</p>
<h3>Books by {{ object }} I love:</h3>
<div class="book-list">
<ol>
{% for book in object.get_books %}
<a href="{{ book.get_absolute_url }}">
<li>{{ book }}</li>
</a>
{% endfor %}
</ol>
<div class="author-tag">
<h4>Nationality: {{ object.nationality }}</h4>
</div>
<div class="links">
<a href="/home/" class="btn-primary">Home</a>
<a href="/books/" class="btn-secondary">Books</a>
<a href="/authors/" class="btn-primary">Authors</a>
</div>
{% endblock %}
</div>
<p>{{ object.bio }}</p>
<a href="{{object.get_absolute_url}}edit" class="btn-primary">Edit Author</a>
<h3>Books by {{ object }} I love:</h3>
<div class="book-list">
<ol>
{% for book in object.get_books %}
<a href="{{ book.get_absolute_url }}">
<li>{{ book }}</li>
</a>
{% endfor %}
</ol>
</div>
<div class="links">
<a href="/home/" class="btn-primary">Home</a>
<a href="/books/" class="btn-secondary">Books</a>
<a href="/authors/" class="btn-primary">Authors</a>
</div>
{% endblock %}
</div>
{% 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