Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
javing_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
John Aidan Vincent M. Ng
javing_reading
Commits
ff678980
Commit
ff678980
authored
Apr 24, 2023
by
Javi Ng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added button for editing from author/book page
parent
93120a6e
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
6 deletions
+10
-6
add_author.html
javing_reading/bookshelf/templates/bookshelf/add_author.html
+1
-1
add_book.html
javing_reading/bookshelf/templates/bookshelf/add_book.html
+1
-1
author_details.html
...reading/bookshelf/templates/bookshelf/author_details.html
+3
-1
book_details.html
...g_reading/bookshelf/templates/bookshelf/book_details.html
+3
-1
edit_author.html
...ng_reading/bookshelf/templates/bookshelf/edit_author.html
+1
-1
edit_book.html
javing_reading/bookshelf/templates/bookshelf/edit_book.html
+1
-1
No files found.
javing_reading/bookshelf/templates/bookshelf/add_author.html
View file @
ff678980
...
...
@@ -3,7 +3,7 @@
{% block title %} Add New Author {% endblock %}
{% block content %}
<form
method=
"POST"
action=
"
newauthor
"
>
<form
method=
"POST"
action=
"
details
"
>
{% csrf_token %}
{{ form }}
...
...
javing_reading/bookshelf/templates/bookshelf/add_book.html
View file @
ff678980
...
...
@@ -3,7 +3,7 @@
{% block title %} Add New Book {% endblock %}
{% block content %}
<form
method=
"POST"
action=
"
newbook
"
>
<form
method=
"POST"
action=
"
details
"
>
{% csrf_token %}
{{ form }}
...
...
javing_reading/bookshelf/templates/bookshelf/author_details.html
View file @
ff678980
...
...
@@ -8,7 +8,9 @@
<h2>
{{ object.age }} years old
</h2>
<b>
Nationality:
</b>
{{ object.nationality }}
<br>
<b>
Biography:
</b>
{{ object.bio }}
<br>
<br>
<form
action=
"./edit"
>
<button
type=
"submit"
>
Edit Author
</button>
</form>
{# iterate through set of related books (related_name is booklist) #}
<b>
Books by {{ object }} I love:
</b>
<ul>
...
...
javing_reading/bookshelf/templates/bookshelf/book_details.html
View file @
ff678980
...
...
@@ -13,7 +13,9 @@
<b>
Published
</b>
{{ object.year_published}}
<br>
<br>
<b>
ISBN
</b>
{{ object.ISBN }}
<br>
<br>
<b>
Blurb:
</b>
{{ object.blurb }}
<br>
<form
action=
"./edit"
>
<button
type=
"submit"
>
Edit Book
</button>
</form>
{% endblock %}
{# navigation bar block #}
...
...
javing_reading/bookshelf/templates/bookshelf/edit_author.html
View file @
ff678980
...
...
@@ -3,7 +3,7 @@
{% block title %} Edit Author {% endblock %}
{% block content %}
<form
method=
"POST"
action=
"
updateauthor
"
>
<form
method=
"POST"
action=
"
details
"
>
{% csrf_token %}
{{ form }}
...
...
javing_reading/bookshelf/templates/bookshelf/edit_book.html
View file @
ff678980
...
...
@@ -3,7 +3,7 @@
{% block title %} Edit Book {% endblock %}
{% block content %}
<form
method=
"POST"
action=
"
updatebook
"
>
<form
method=
"POST"
action=
"
details
"
>
{% csrf_token %}
{{ form }}
...
...
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