Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bellapanghulan_reading
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ysabella Panghulan
bellapanghulan_reading
Commits
bb23d8c7
Commit
bb23d8c7
authored
Apr 24, 2023
by
Ysabella Panghulan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added Edit Author button
parent
947c7f15
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
28 deletions
+29
-28
author_details.html
...reading/bookshelf/templates/bookshelf/author_details.html
+29
-28
No files found.
bellapanghulan_reading/bookshelf/templates/bookshelf/author_details.html
View file @
bb23d8c7
{%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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment