Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
janang_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
Jan Ericsson Ong Ang
janang_reading
Commits
c3809b7b
Commit
c3809b7b
authored
Apr 25, 2023
by
Jan Ericsson Ong Ang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Created Edit Book and Edit Author Buttons
parent
daa370a6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
author_details.html
...reading/bookshelf/templates/bookshelf/author_details.html
+6
-0
book_details.html
...g_reading/bookshelf/templates/bookshelf/book_details.html
+5
-0
No files found.
janang_reading/bookshelf/templates/bookshelf/author_details.html
View file @
c3809b7b
...
@@ -9,6 +9,12 @@
...
@@ -9,6 +9,12 @@
<p>
{{ author.nationality }}
</p>
<p>
{{ author.nationality }}
</p>
<p>
{{ author.bio }}
</p>
<p>
{{ author.bio }}
</p>
<button
type=
"button"
>
<a
href=
"/bookshelf/books/{{ book.id }}/edit/"
>
Edit Book
</a>
</button><br>
<p>
Books by {{ author.first_name }} {{ author.last_name }} I love
</p>
<p>
Books by {{ author.first_name }} {{ author.last_name }} I love
</p>
{% for authbook in author.books_set.all %}
{% for authbook in author.books_set.all %}
...
...
janang_reading/bookshelf/templates/bookshelf/book_details.html
View file @
c3809b7b
...
@@ -10,6 +10,11 @@
...
@@ -10,6 +10,11 @@
<p>
{{ books.year_published }}
</p>
<p>
{{ books.year_published }}
</p>
<p>
{{ books.ISBN }}
</p>
<p>
{{ books.ISBN }}
</p>
<p>
{{ books.blurb }}
</p>
<p>
{{ books.blurb }}
</p>
<button
type=
"button"
>
<a
href=
"/bookshelf/books/{{ book.id }}/edit/"
>
Edit Book
</a>
</button><br>
<a
href=
"/bookshelf/"
>
Home
</a>
<a
href=
"/bookshelf/"
>
Home
</a>
<a
href=
"/bookshelf/books/"
>
Books
</a>
<a
href=
"/bookshelf/books/"
>
Books
</a>
...
...
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