Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
carlosoarde_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
Carlos Gabriel Oarde
carlosoarde_reading
Commits
fea21e8e
Commit
fea21e8e
authored
Apr 25, 2023
by
KaoruSawade
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added 'edit' buttons to author & books details pages, placeholders w/o links yet
parent
67815043
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
author_detail.html
..._reading/bookshelf/templates/bookshelf/author_detail.html
+6
-1
books_detail.html
...e_reading/bookshelf/templates/bookshelf/books_detail.html
+5
-0
No files found.
carlosoarde_reading/bookshelf/templates/bookshelf/author_detail.html
View file @
fea21e8e
...
@@ -6,7 +6,12 @@
...
@@ -6,7 +6,12 @@
<p>
{{ author.age }}
</p>
<p>
{{ author.age }}
</p>
<p>
{{ author.nationality }}
</p>
<p>
{{ author.nationality }}
</p>
<p>
{{ author.bio }}
</p>
<p>
{{ author.bio }}
</p>
<h3>
Books by {{ author.first_name }} {{ author.last_name }} I love:
<br>
<form
action=
'[insert link to edit-author]'
>
<input
type=
"submit"
value=
"Edit Author"
/>
</form>
<br>
<h3>
Books by {{ author.first_name }} {{ author.last_name }} I love:
<h3>
<ul>
<ul>
{%for book in book_list%}
{%for book in book_list%}
<li><a
href=
{{
book
.
get_absolute_url
}}
>
{{ book.title }}
</a></li>
<li><a
href=
{{
book
.
get_absolute_url
}}
>
{{ book.title }}
</a></li>
...
...
carlosoarde_reading/bookshelf/templates/bookshelf/books_detail.html
View file @
fea21e8e
...
@@ -8,6 +8,11 @@
...
@@ -8,6 +8,11 @@
<p>
{{ book.year_published }}
</p>
<p>
{{ book.year_published }}
</p>
<p>
{{ book.ISBN }}
</p>
<p>
{{ book.ISBN }}
</p>
<p>
{{ book.blurb }}
</p>
<p>
{{ book.blurb }}
</p>
<br>
<form
action=
'[insert link to edit-book]'
>
<input
type=
"submit"
value=
"Edit Book"
/>
</form>
<br>
{% endblock %}
{% endblock %}
{% block navbar %}
{% block navbar %}
<ul
class=
"navbarList"
>
<ul
class=
"navbarList"
>
...
...
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