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
8128bc67
Commit
8128bc67
authored
Apr 24, 2023
by
Javi Ng
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added css for buttons, TODO: figure out why css for buttons isnt working
parent
d5da860a
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
25 additions
and
13 deletions
+25
-13
urls.cpython-310.pyc
javing_reading/bookshelf/__pycache__/urls.cpython-310.pyc
+0
-0
add_author.html
javing_reading/bookshelf/templates/bookshelf/add_author.html
+2
-3
add_book.html
javing_reading/bookshelf/templates/bookshelf/add_book.html
+2
-3
edit_author.html
...ng_reading/bookshelf/templates/bookshelf/edit_author.html
+2
-3
edit_book.html
javing_reading/bookshelf/templates/bookshelf/edit_book.html
+2
-3
home.html
javing_reading/bookshelf/templates/bookshelf/home.html
+0
-1
urls.py
javing_reading/bookshelf/urls.py
+4
-0
db.sqlite3
javing_reading/db.sqlite3
+0
-0
style.css
javing_reading/static/style.css
+13
-0
No files found.
javing_reading/bookshelf/__pycache__/urls.cpython-310.pyc
View file @
8128bc67
No preview for this file type
javing_reading/bookshelf/templates/bookshelf/add_author.html
View file @
8128bc67
{% extends 'base.html' %}
{% load static %}
{% block title %} Add New Author {% endblock %}
{% block content %}
<form
method=
"POST"
>
{% csrf_token %}
{{ form }}
{{ form
.as_p
}}
<
input
type=
"Submit"
>
<
button
type=
"submit"
>
Submit
</button
>
</form>
{% endblock %}
\ No newline at end of file
javing_reading/bookshelf/templates/bookshelf/add_book.html
View file @
8128bc67
{% extends 'base.html' %}
{% load static %}
{% block title %} Add New Book {% endblock %}
{% block content %}
<form
method=
"POST"
>
{% csrf_token %}
{{ form }}
{{ form
.as_p
}}
<
input
type=
"Submit"
>
<
button
type=
"submit"
>
Submit
</button
>
</form>
{% endblock %}
\ No newline at end of file
javing_reading/bookshelf/templates/bookshelf/edit_author.html
View file @
8128bc67
{% extends 'base.html' %}
{% load static %}
{% block title %} Edit Author {% endblock %}
{% block content %}
<form
method=
"POST"
>
{% csrf_token %}
{{ form }}
{{ form
.as_p
}}
<
input
type=
"Submit"
>
<
button
type=
"submit"
>
Submit
</button
>
</form>
{% endblock %}
\ No newline at end of file
javing_reading/bookshelf/templates/bookshelf/edit_book.html
View file @
8128bc67
{% extends 'base.html' %}
{% load static %}
{% block title %} Edit Book {% endblock %}
{% block content %}
<form
method=
"POST"
>
{% csrf_token %}
{{ form }}
{{ form
.as_p
}}
<
input
type=
"Submit"
>
<
button
type=
"submit"
>
Submit
</button
>
</form>
{% endblock %}
\ No newline at end of file
javing_reading/bookshelf/templates/bookshelf/home.html
View file @
8128bc67
{% extends 'base.html' %}
{% load static %}
{% block content %}
<h1>
Welcome to Javi's Database of Favorite Books and Authors!
</h1>
...
...
javing_reading/bookshelf/urls.py
View file @
8128bc67
...
...
@@ -3,10 +3,14 @@ from . import views
urlpatterns
=
[
path
(
'home/'
,
views
.
HomeView
,
name
=
"home"
),
# books urls: book list, book details, book creation and updating
path
(
'books/'
,
views
.
BookListView
.
as_view
(),
name
=
"booklist"
),
path
(
'books/<int:pk>/details'
,
views
.
BookDetailView
.
as_view
(),
name
=
"bookdetail"
),
path
(
'books/add/'
,
views
.
BookCreateView
.
as_view
(),
name
=
"newbook"
),
path
(
'books/<int:pk>/edit'
,
views
.
BookUpdateView
.
as_view
(),
name
=
"updatebook"
),
# authors urls: author list, author details, author creation and updating
path
(
'authors/'
,
views
.
AuthorListView
.
as_view
(),
name
=
"authorlist"
),
path
(
'authors/<int:pk>/details'
,
views
.
AuthorDetailView
.
as_view
(),
name
=
"authordetail"
),
path
(
'authors/add/'
,
views
.
AuthorCreateView
.
as_view
(),
name
=
"newauthor"
),
...
...
javing_reading/db.sqlite3
View file @
8128bc67
No preview for this file type
javing_reading/static/style.css
View file @
8128bc67
...
...
@@ -28,4 +28,17 @@ body {
background-color
:
ivory
;
background-position
:
right
bottom
;
background-repeat
:
no-repeat
;
}
/* */
button
{
transition-duration
:
0.4s
;
border
:
2px
solid
black
;
padding
:
8px
16px
;
background-color
:
#F1ce76
;
text-align
:
center
;
}
button
:hover
{
background-color
:
#B99436
;
}
\ No newline at end of file
John Aidan Vincent M. Ng
🤸
@javing
·
Apr 24, 2023
Maintainer
it was my browser :(
it was my browser :(
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