Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
garethcastillo_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
Gareth Xerxes Yap Castillo
garethcastillo_reading
Commits
3454ff2e
Commit
3454ff2e
authored
Apr 25, 2023
by
Gareth Xerxes Yap Castillo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix author edit page
parent
cf36ccfc
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
4 additions
and
4 deletions
+4
-4
models.cpython-39.pyc
...tillo_reading/bookshelf/__pycache__/models.cpython-39.pyc
+0
-0
urls.cpython-39.pyc
...astillo_reading/bookshelf/__pycache__/urls.cpython-39.pyc
+0
-0
views.cpython-39.pyc
...stillo_reading/bookshelf/__pycache__/views.cpython-39.pyc
+0
-0
author_details.html
...reading/bookshelf/templates/bookshelf/author_details.html
+1
-1
edit-author.html
...lo_reading/bookshelf/templates/bookshelf/edit-author.html
+1
-1
edit-book.html
...illo_reading/bookshelf/templates/bookshelf/edit-book.html
+1
-1
urls.py
garethcastillo_reading/bookshelf/urls.py
+1
-1
No files found.
garethcastillo_reading/bookshelf/__pycache__/models.cpython-39.pyc
View file @
3454ff2e
No preview for this file type
garethcastillo_reading/bookshelf/__pycache__/urls.cpython-39.pyc
View file @
3454ff2e
No preview for this file type
garethcastillo_reading/bookshelf/__pycache__/views.cpython-39.pyc
View file @
3454ff2e
No preview for this file type
garethcastillo_reading/bookshelf/templates/bookshelf/author_details.html
View file @
3454ff2e
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
{{author.nationality}}
<br
/>
{{author.nationality}}
<br
/>
{{author.bio}}
<br
/>
{{author.bio}}
<br
/>
<button
onclick=
"window.location.href='../../../
book
s/{{author.id}}/edit/';"
>
Edit Author
</button>
<br
/>
<button
onclick=
"window.location.href='../../../
author
s/{{author.id}}/edit/';"
>
Edit Author
</button>
<br
/>
Books by {{author.first_name}} {{author.last_name}} I love:
Books by {{author.first_name}} {{author.last_name}} I love:
<ul>
<ul>
...
...
garethcastillo_reading/bookshelf/templates/bookshelf/edit-author.html
View file @
3454ff2e
{% extends 'base.html' %}
{% extends 'base.html' %}
{% load static %}
{% load static %}
{% block title %}
Add New
Author{% endblock %}
{% block title %}
Edit
Author{% endblock %}
{% block content %}
{% block content %}
<form
class =
"aligned_left_paragraph_small"
method=
"post"
>
<form
class =
"aligned_left_paragraph_small"
method=
"post"
>
...
...
garethcastillo_reading/bookshelf/templates/bookshelf/edit-book.html
View file @
3454ff2e
{% extends 'base.html' %}
{% extends 'base.html' %}
{% load static %}
{% load static %}
{% block title %}
Add New
Book{% endblock %}
{% block title %}
Edit
Book{% endblock %}
{% block content %}
{% block content %}
<form
class =
"aligned_left_paragraph_small"
method=
"post"
>
<form
class =
"aligned_left_paragraph_small"
method=
"post"
>
...
...
garethcastillo_reading/bookshelf/urls.py
View file @
3454ff2e
...
@@ -10,7 +10,7 @@ urlpatterns = [
...
@@ -10,7 +10,7 @@ urlpatterns = [
path
(
'books/add'
,
views
.
addbooks_view
.
as_view
(),
name
=
'add_book'
),
path
(
'books/add'
,
views
.
addbooks_view
.
as_view
(),
name
=
'add_book'
),
path
(
'authors/add'
,
views
.
addauthors_view
.
as_view
(),
name
=
'add_author'
),
path
(
'authors/add'
,
views
.
addauthors_view
.
as_view
(),
name
=
'add_author'
),
path
(
'books/<int:pk>/edit/'
,
views
.
editbooks_view
.
as_view
(),
name
=
'edit_book'
),
path
(
'books/<int:pk>/edit/'
,
views
.
editbooks_view
.
as_view
(),
name
=
'edit_book'
),
path
(
'
book
s/<int:pk>/edit/'
,
views
.
editauthors_view
.
as_view
(),
name
=
'edit_author'
),
path
(
'
author
s/<int:pk>/edit/'
,
views
.
editauthors_view
.
as_view
(),
name
=
'edit_author'
),
]
]
app_name
=
"bookshelf"
app_name
=
"bookshelf"
\ No newline at end of file
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