Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
chrisolivares_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
Christian Louis Olivares
chrisolivares_reading
Commits
37131484
Commit
37131484
authored
Apr 25, 2023
by
Christian Louis Olivares
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added content for edit-book.html and edit-author.html, lab done
parent
069d993a
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
53 additions
and
3 deletions
+53
-3
views.cpython-310.pyc
...vares_reading/bookshelf/__pycache__/views.cpython-310.pyc
+0
-0
author_details.html
...reading/bookshelf/templates/bookshelf/author_details.html
+1
-1
book_details.html
...s_reading/bookshelf/templates/bookshelf/book_details.html
+1
-1
edit-author.html
...es_reading/bookshelf/templates/bookshelf/edit-author.html
+25
-0
edit-book.html
...ares_reading/bookshelf/templates/bookshelf/edit-book.html
+25
-0
views.py
chrisolivares_reading/bookshelf/views.py
+1
-1
No files found.
chrisolivares_reading/bookshelf/__pycache__/views.cpython-310.pyc
View file @
37131484
No preview for this file type
chrisolivares_reading/bookshelf/templates/bookshelf/author_details.html
View file @
37131484
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<ul><ul>
{{object.age}}
</ul></ul>
<ul><ul>
{{object.age}}
</ul></ul>
<ul><ul>
{{object.nationality}}
</ul></ul>
<ul><ul>
{{object.nationality}}
</ul></ul>
<ul><ul>
{{object.bio}}
</ul></ul>
<ul><ul>
{{object.bio}}
</ul></ul>
<ul><button
onclick=
"document.location='{{object.get_edit_url}}'"
>
Edit
Book
</button></ul>
<ul><button
onclick=
"document.location='{{object.get_edit_url}}'"
>
Edit
Author
</button></ul>
{%endblock%}
{%endblock%}
...
...
chrisolivares_reading/bookshelf/templates/bookshelf/book_details.html
View file @
37131484
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<ul>
{{object.year_published}}
</ul>
<ul>
{{object.year_published}}
</ul>
<ul>
{{object.ISBN}}
</ul>
<ul>
{{object.ISBN}}
</ul>
<ul>
{{object.blurb}}
</ul>
<ul>
{{object.blurb}}
</ul>
<ul><button
onclick=
"document.location='{{object.get_edit_url}}'"
>
Edit
Author
</button></ul>
<ul><button
onclick=
"document.location='{{object.get_edit_url}}'"
>
Edit
Book
</button></ul>
{% endblock %}
{% endblock %}
{%block hyperlinks%}
{%block hyperlinks%}
...
...
chrisolivares_reading/bookshelf/templates/bookshelf/edit-author.html
View file @
37131484
{% extends 'base.html' %}
{% block title %}Edit Author{% endblock %}
{% block heading %}
{% endblock %}
{% block text %}
<form
method=
"post"
>
{% csrf_token %}
{{ form.as_p }}
<input
type=
"submit"
value=
"Save"
>
</form>
{% endblock %}
{%block hyperlinks%}
<ul>
{% for object in object_list %}
<li><a
href=
"{{object.get_absolute_url}}"
>
{{object.title}}
</a></li>
{% endfor %}
<br></br>
<a
href=
"/home"
>
Home
</a>
<a
href=
"/authors"
>
Authors
</a>
</ul>
{%endblock%}
\ No newline at end of file
chrisolivares_reading/bookshelf/templates/bookshelf/edit-book.html
View file @
37131484
{% extends 'base.html' %}
{% block title %}Edit Book{% endblock %}
{% block heading %}
{% endblock %}
{% block text %}
<form
method=
"post"
>
{% csrf_token %}
{{ form.as_p }}
<input
type=
"submit"
value=
"Save"
>
</form>
{% endblock %}
{%block hyperlinks%}
<ul>
{% for object in object_list %}
<li><a
href=
"{{object.get_absolute_url}}"
>
{{object.title}}
</a></li>
{% endfor %}
<br></br>
<a
href=
"/home"
>
Home
</a>
<a
href=
"/authors"
>
Authors
</a>
</ul>
{%endblock%}
\ No newline at end of file
chrisolivares_reading/bookshelf/views.py
View file @
37131484
...
@@ -50,7 +50,7 @@ class EditBookView(UpdateView):
...
@@ -50,7 +50,7 @@ class EditBookView(UpdateView):
fields
=
'__all__'
fields
=
'__all__'
template_name
=
'bookshelf/edit-book.html'
template_name
=
'bookshelf/edit-book.html'
class
EditAuthorView
(
Cre
ateView
):
class
EditAuthorView
(
Upd
ateView
):
model
=
Author
model
=
Author
fields
=
'__all__'
fields
=
'__all__'
template_name
=
'bookshelf/edit-author.html'
template_name
=
'bookshelf/edit-author.html'
\ 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