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
f95cb2df
Commit
f95cb2df
authored
Apr 24, 2023
by
Javi Ng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
finalized templates, added css for all input fields
parent
8128bc67
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
31 additions
and
9 deletions
+31
-9
add_author.html
javing_reading/bookshelf/templates/bookshelf/add_author.html
+4
-2
add_book.html
javing_reading/bookshelf/templates/bookshelf/add_book.html
+4
-1
book_details.html
...g_reading/bookshelf/templates/bookshelf/book_details.html
+1
-1
edit_author.html
...ng_reading/bookshelf/templates/bookshelf/edit_author.html
+4
-1
edit_book.html
javing_reading/bookshelf/templates/bookshelf/edit_book.html
+4
-1
db.sqlite3
javing_reading/db.sqlite3
+0
-0
style.css
javing_reading/static/style.css
+14
-3
No files found.
javing_reading/bookshelf/templates/bookshelf/add_author.html
View file @
f95cb2df
{% extends 'base.html' %}
{% extends 'base.html' %}
{% block title %} Add New Author {% endblock %}
{% block title %} Add New Author {% endblock %}
{% block content %}
{% block content %}
<form
method=
"POST"
>
<form
method=
"POST"
>
{% csrf_token %}
{% csrf_token %}
{{ form.as_p }}
{% for field in form %}
{{field.label}}: {{ field }}
<br>
<br>
{% endfor %}
<button
type=
"submit"
>
Submit
</button>
<button
type=
"submit"
>
Submit
</button>
</form>
</form>
...
...
javing_reading/bookshelf/templates/bookshelf/add_book.html
View file @
f95cb2df
...
@@ -4,7 +4,10 @@
...
@@ -4,7 +4,10 @@
{% block content %}
{% block content %}
<form
method=
"POST"
>
<form
method=
"POST"
>
{% csrf_token %}
{% csrf_token %}
{{ form.as_p }}
{% for field in form %}
{{field.label}}: {{ field }}
<br>
<br>
{% endfor %}
<button
type=
"submit"
>
Submit
</button>
<button
type=
"submit"
>
Submit
</button>
</form>
</form>
...
...
javing_reading/bookshelf/templates/bookshelf/book_details.html
View file @
f95cb2df
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<b>
Publisher:
</b>
{{ object.publisher }}
<br>
<b>
Publisher:
</b>
{{ object.publisher }}
<br>
<b>
Published
</b>
{{ object.year_published}}
<br>
<br>
<b>
Published
</b>
{{ object.year_published}}
<br>
<br>
<b>
ISBN
</b>
{{ object.ISBN }}
<br>
<br>
<b>
ISBN
</b>
{{ object.ISBN }}
<br>
<br>
<b>
Blurb:
</b>
{{ object.blurb }}
<br>
<b>
Blurb:
</b>
{{ object.blurb }}
<br>
<br>
<form
action=
"./edit"
>
<form
action=
"./edit"
>
<button
type=
"submit"
>
Edit Book
</button>
<button
type=
"submit"
>
Edit Book
</button>
</form>
</form>
...
...
javing_reading/bookshelf/templates/bookshelf/edit_author.html
View file @
f95cb2df
...
@@ -4,7 +4,10 @@
...
@@ -4,7 +4,10 @@
{% block content %}
{% block content %}
<form
method=
"POST"
>
<form
method=
"POST"
>
{% csrf_token %}
{% csrf_token %}
{{ form.as_p }}
{% for field in form %}
{{field.label}}: {{ field }}
<br>
<br>
{% endfor %}
<button
type=
"submit"
>
Submit
</button>
<button
type=
"submit"
>
Submit
</button>
</form>
</form>
...
...
javing_reading/bookshelf/templates/bookshelf/edit_book.html
View file @
f95cb2df
...
@@ -4,7 +4,10 @@
...
@@ -4,7 +4,10 @@
{% block content %}
{% block content %}
<form
method=
"POST"
>
<form
method=
"POST"
>
{% csrf_token %}
{% csrf_token %}
{{ form.as_p }}
{% for field in form %}
{{field.label}}: {{ field }}
<br>
<br>
{% endfor %}
<button
type=
"submit"
>
Submit
</button>
<button
type=
"submit"
>
Submit
</button>
</form>
</form>
...
...
javing_reading/db.sqlite3
View file @
f95cb2df
No preview for this file type
javing_reading/static/style.css
View file @
f95cb2df
...
@@ -30,8 +30,8 @@ body {
...
@@ -30,8 +30,8 @@ body {
background-repeat
:
no-repeat
;
background-repeat
:
no-repeat
;
}
}
/* */
/*
button styling
*/
button
{
button
[
type
=
submit
]
{
transition-duration
:
0.4s
;
transition-duration
:
0.4s
;
border
:
2px
solid
black
;
border
:
2px
solid
black
;
padding
:
8px
16px
;
padding
:
8px
16px
;
...
@@ -39,6 +39,17 @@ button {
...
@@ -39,6 +39,17 @@ button {
text-align
:
center
;
text-align
:
center
;
}
}
button
:hover
{
button
[
type
=
submit
]
:hover
{
background-color
:
#B99436
;
background-color
:
#B99436
;
}
}
/* fields styling */
input
[
type
=
text
],
input
[
type
=
number
],
select
,
textarea
{
border
:
2px
solid
rgb
(
96
,
87
,
26
);
border-radius
:
4px
;
background-color
:
rgb
(
238
,
216
,
73
)
}
input
[
type
=
text
]
:focus
,
input
[
type
=
number
]
:focus
,
select
:focus
,
textarea
:focus
{
background-color
:
rgb
(
185
,
162
,
9
)
}
\ 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