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
93120a6e
Commit
93120a6e
authored
Apr 24, 2023
by
Javi Ng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated navigation bar code
parent
5831d3d3
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
42 additions
and
4 deletions
+42
-4
urls.cpython-310.pyc
javing_reading/bookshelf/__pycache__/urls.cpython-310.pyc
+0
-0
author_details.html
...reading/bookshelf/templates/bookshelf/author_details.html
+2
-0
authors.html
javing_reading/bookshelf/templates/bookshelf/authors.html
+2
-0
book_details.html
...g_reading/bookshelf/templates/bookshelf/book_details.html
+2
-0
books.html
javing_reading/bookshelf/templates/bookshelf/books.html
+2
-0
edit_author.html
...ng_reading/bookshelf/templates/bookshelf/edit_author.html
+12
-0
edit_book.html
javing_reading/bookshelf/templates/bookshelf/edit_book.html
+12
-0
home.html
javing_reading/bookshelf/templates/bookshelf/home.html
+6
-0
urls.py
javing_reading/bookshelf/urls.py
+2
-2
base.html
javing_reading/templates/base.html
+2
-2
No files found.
javing_reading/bookshelf/__pycache__/urls.cpython-310.pyc
View file @
93120a6e
No preview for this file type
javing_reading/bookshelf/templates/bookshelf/author_details.html
View file @
93120a6e
...
@@ -25,7 +25,9 @@
...
@@ -25,7 +25,9 @@
{# navigation bar block #}
{# navigation bar block #}
{% block table %}
{% block table %}
<tr>
<td><a
href =
'../../home'
>
Home
</a></td>
<td><a
href =
'../../home'
>
Home
</a></td>
<td><a
href =
'../../books'
>
Books
</a></td>
<td><a
href =
'../../books'
>
Books
</a></td>
<td><a
href =
'../../authors'
>
Authors
</a></td>
<td><a
href =
'../../authors'
>
Authors
</a></td>
</tr>
{% endblock %}
{% endblock %}
\ No newline at end of file
javing_reading/bookshelf/templates/bookshelf/authors.html
View file @
93120a6e
...
@@ -20,6 +20,8 @@
...
@@ -20,6 +20,8 @@
{# navigation bar block #}
{# navigation bar block #}
{% block table %}
{% block table %}
<tr>
<td><a
href =
'../home'
>
Home
</a></td>
<td><a
href =
'../home'
>
Home
</a></td>
<td><a
href =
'../books'
>
Books
</a></td>
<td><a
href =
'../books'
>
Books
</a></td>
</tr>
{% endblock %}
{% endblock %}
\ No newline at end of file
javing_reading/bookshelf/templates/bookshelf/book_details.html
View file @
93120a6e
...
@@ -18,7 +18,9 @@
...
@@ -18,7 +18,9 @@
{# navigation bar block #}
{# navigation bar block #}
{% block table %}
{% block table %}
<tr>
<td><a
href =
'../../home'
>
Home
</a></td>
<td><a
href =
'../../home'
>
Home
</a></td>
<td><a
href =
'../../books'
>
Books
</a></td>
<td><a
href =
'../../books'
>
Books
</a></td>
<td><a
href =
'../../authors'
>
Authors
</a></td>
<td><a
href =
'../../authors'
>
Authors
</a></td>
</tr>
{% endblock %}
{% endblock %}
\ No newline at end of file
javing_reading/bookshelf/templates/bookshelf/books.html
View file @
93120a6e
...
@@ -20,6 +20,8 @@
...
@@ -20,6 +20,8 @@
{# navigation bar block #}
{# navigation bar block #}
{% block table %}
{% block table %}
<tr>
<td><a
href =
'../home'
>
Home
</a></td>
<td><a
href =
'../home'
>
Home
</a></td>
<td><a
href =
'../authors'
>
Authors
</a></td>
<td><a
href =
'../authors'
>
Authors
</a></td>
</tr>
{% endblock %}
{% endblock %}
\ No newline at end of file
javing_reading/bookshelf/templates/bookshelf/edit_author.html
0 → 100644
View file @
93120a6e
{% extends 'base.html' %}
{% load static %}
{% block title %} Edit Author {% endblock %}
{% block content %}
<form
method=
"POST"
action=
"updateauthor"
>
{% csrf_token %}
{{ form }}
<input
type=
"Submit"
>
</form>
{% endblock %}
\ No newline at end of file
javing_reading/bookshelf/templates/bookshelf/edit_book.html
0 → 100644
View file @
93120a6e
{% extends 'base.html' %}
{% load static %}
{% block title %} Edit Book {% endblock %}
{% block content %}
<form
method=
"POST"
action=
"updatebook"
>
{% csrf_token %}
{{ form }}
<input
type=
"Submit"
>
</form>
{% endblock %}
\ No newline at end of file
javing_reading/bookshelf/templates/bookshelf/home.html
View file @
93120a6e
...
@@ -9,6 +9,12 @@
...
@@ -9,6 +9,12 @@
{# navigation bar block #}
{# navigation bar block #}
{% block table %}
{% block table %}
<tr>
<td><a
href =
'../books'
>
Books
</a></td>
<td><a
href =
'../books'
>
Books
</a></td>
<td><a
href =
'../authors'
>
Authors
</a></td>
<td><a
href =
'../authors'
>
Authors
</a></td>
</tr>
<tr>
<td><a
href =
'../books/add/'
>
Add Book
</a></td>
<td><a
href =
'../authors/add/'
>
Add Book
</a></td>
</tr>
{% endblock %}
{% endblock %}
\ No newline at end of file
javing_reading/bookshelf/urls.py
View file @
93120a6e
...
@@ -6,9 +6,9 @@ urlpatterns = [
...
@@ -6,9 +6,9 @@ urlpatterns = [
path
(
'books/'
,
views
.
BookListView
.
as_view
(),
name
=
"booklist"
),
path
(
'books/'
,
views
.
BookListView
.
as_view
(),
name
=
"booklist"
),
path
(
'books/<int:pk>/details'
,
views
.
BookDetailView
.
as_view
(),
name
=
"bookdetail"
),
path
(
'books/<int:pk>/details'
,
views
.
BookDetailView
.
as_view
(),
name
=
"bookdetail"
),
path
(
'books/add/'
,
views
.
BookCreateView
.
as_view
(),
name
=
"newbook"
),
path
(
'books/add/'
,
views
.
BookCreateView
.
as_view
(),
name
=
"newbook"
),
path
(
'books/<int:pk>/
details
'
,
views
.
BookUpdateView
.
as_view
(),
name
=
"updatebook"
),
path
(
'books/<int:pk>/
edit
'
,
views
.
BookUpdateView
.
as_view
(),
name
=
"updatebook"
),
path
(
'authors/'
,
views
.
AuthorListView
.
as_view
(),
name
=
"authorlist"
),
path
(
'authors/'
,
views
.
AuthorListView
.
as_view
(),
name
=
"authorlist"
),
path
(
'authors/<int:pk>/details'
,
views
.
AuthorDetailView
.
as_view
(),
name
=
"authordetail"
),
path
(
'authors/<int:pk>/details'
,
views
.
AuthorDetailView
.
as_view
(),
name
=
"authordetail"
),
path
(
'authors/add/'
,
views
.
AuthorCreateView
.
as_view
(),
name
=
"newauthor"
),
path
(
'authors/add/'
,
views
.
AuthorCreateView
.
as_view
(),
name
=
"newauthor"
),
path
(
'authors/<int:pk>/
details
'
,
views
.
AuthorUpdateView
.
as_view
(),
name
=
"updateauthor"
),
path
(
'authors/<int:pk>/
edit
'
,
views
.
AuthorUpdateView
.
as_view
(),
name
=
"updateauthor"
),
]
]
\ No newline at end of file
javing_reading/templates/base.html
View file @
93120a6e
...
@@ -19,9 +19,9 @@
...
@@ -19,9 +19,9 @@
<br>
<br>
{# block for navigation bar, app pages simply put table data for needed links #}
{# block for navigation bar, app pages simply put table data for needed links #}
<table>
<tr>
<table>
{% block table %}{% endblock %}
{% block table %}{% endblock %}
</table>
</tr>
</table>
</body>
</body>
...
...
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