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
db2065e9
Commit
db2065e9
authored
Apr 25, 2023
by
karin-kurusu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Created and implemented "Edit Author Page"
parent
1ecacda9
Pipeline
#3140
canceled with stages
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
1 deletion
+13
-1
urls.cpython-310.pyc
...incruz_reading/bookshelf/__pycache__/urls.cpython-310.pyc
+0
-0
edit-author.html
...uz_reading/bookshelf/templates/bookshelf/edit-author.html
+11
-0
urls.py
calvincruz_reading/bookshelf/urls.py
+2
-1
db.sqlite3
calvincruz_reading/db.sqlite3
+0
-0
No files found.
calvincruz_reading/bookshelf/__pycache__/urls.cpython-310.pyc
View file @
db2065e9
No preview for this file type
calvincruz_reading/bookshelf/templates/bookshelf/edit-author.html
0 → 100644
View file @
db2065e9
{% extends 'base.html' %}
{% load static %}
{% block title %}Edit Author{% endblock %}
{% block content %}
<form
action=
''
method=
"POST"
>
{% csrf_token %}
{{ form.as_p }}
<input
type=
"submit"
value=
"Save Changes"
>
</form>
{% endblock %}
\ No newline at end of file
calvincruz_reading/bookshelf/urls.py
View file @
db2065e9
from
django.urls
import
path
from
django.urls
import
path
from
.views
import
home
,
BooksList
,
BooksDetails
,
AuthorList
,
AuthorDetails
,
BooksCreate
,
AuthorCreate
,
BooksUpdate
from
.views
import
home
,
BooksList
,
BooksDetails
,
AuthorList
,
AuthorDetails
,
BooksCreate
,
AuthorCreate
,
BooksUpdate
,
AuthorUpdate
urlpatterns
=
[
urlpatterns
=
[
path
(
'home/'
,
home
,
name
=
'home'
),
path
(
'home/'
,
home
,
name
=
'home'
),
...
@@ -10,6 +10,7 @@ urlpatterns = [
...
@@ -10,6 +10,7 @@ urlpatterns = [
path
(
'authors/'
,
AuthorList
.
as_view
(),
name
=
"authors"
),
path
(
'authors/'
,
AuthorList
.
as_view
(),
name
=
"authors"
),
path
(
'authors/<int:pk>/details'
,
AuthorDetails
.
as_view
(),
name
=
'author_details'
),
path
(
'authors/<int:pk>/details'
,
AuthorDetails
.
as_view
(),
name
=
'author_details'
),
path
(
'authors/add'
,
AuthorCreate
.
as_view
(),
name
=
'add-author'
),
path
(
'authors/add'
,
AuthorCreate
.
as_view
(),
name
=
'add-author'
),
path
(
'authors/<int:pk>/edit'
,
AuthorUpdate
.
as_view
(),
name
=
'edit-author'
),
]
]
app_name
=
"bookshelf"
app_name
=
"bookshelf"
\ No newline at end of file
calvincruz_reading/db.sqlite3
View file @
db2065e9
No preview for this file type
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