Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
calvincruz_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
Calvin Josh Cruz
calvincruz_reading
Commits
c955f3f5
Commit
c955f3f5
authored
Apr 25, 2023
by
karin-kurusu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated "Book's Details Page" to have an "Edit Book" button
parent
b5b638cc
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
urls.cpython-310.pyc
...incruz_reading/bookshelf/__pycache__/urls.cpython-310.pyc
+0
-0
book_detais.html
...uz_reading/bookshelf/templates/bookshelf/book_detais.html
+5
-0
urls.py
calvincruz_reading/bookshelf/urls.py
+2
-1
No files found.
calvincruz_reading/bookshelf/__pycache__/urls.cpython-310.pyc
View file @
c955f3f5
No preview for this file type
calvincruz_reading/bookshelf/templates/bookshelf/book_detais.html
View file @
c955f3f5
...
...
@@ -13,6 +13,11 @@
<p>
{{book.year_published}}
</p>
<p>
{{book.ISBN}}
</p>
<p>
{{book.blurb}}
</p>
<br>
<form
action=
'books/book.get_pk/edit.html'
>
<input
type=
"submit"
value=
"Edit Book"
/>
</form>
<br>
{% endblock %}
{% block navbar %}
...
...
calvincruz_reading/bookshelf/urls.py
View file @
c955f3f5
from
django.urls
import
path
from
.views
import
home
,
BooksList
,
BooksDetails
,
AuthorList
,
AuthorDetails
,
BooksCreate
,
AuthorCreate
from
.views
import
home
,
BooksList
,
BooksDetails
,
AuthorList
,
AuthorDetails
,
BooksCreate
,
AuthorCreate
,
BooksUpdate
urlpatterns
=
[
path
(
'home/'
,
home
,
name
=
'home'
),
path
(
'books/'
,
BooksList
.
as_view
(),
name
=
'books'
),
path
(
'books/<int:pk>/details'
,
BooksDetails
.
as_view
(),
name
=
'book_detais'
),
path
(
'books/add'
,
BooksCreate
.
as_view
(),
name
=
'add-book'
),
path
(
'books/<int:pk>/edit'
,
BooksUpdate
.
as_view
(),
name
=
'edit-book'
),
path
(
'authors/'
,
AuthorList
.
as_view
(),
name
=
"authors"
),
path
(
'authors/<int:pk>/details'
,
AuthorDetails
.
as_view
(),
name
=
'author_details'
),
path
(
'authors/add'
,
AuthorCreate
.
as_view
(),
name
=
'add-author'
),
...
...
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