Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nishaespera_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
Julia Anishka
nishaespera_reading
Commits
f20e3f0b
Commit
f20e3f0b
authored
Apr 25, 2023
by
Julia Anishka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
applied basic CSS styling to new pages
parent
4f8b1371
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
42 additions
and
7 deletions
+42
-7
add-author.html
...era_reading/bookshelf/templates/bookshelf/add-author.html
+3
-1
add-book.html
...spera_reading/bookshelf/templates/bookshelf/add-book.html
+4
-1
author_details.html
...reading/bookshelf/templates/bookshelf/author_details.html
+1
-1
book_details.html
...a_reading/bookshelf/templates/bookshelf/book_details.html
+1
-1
edit-author.html
...ra_reading/bookshelf/templates/bookshelf/edit-author.html
+10
-2
edit-book.html
...pera_reading/bookshelf/templates/bookshelf/edit-book.html
+8
-1
home.html
nishaespera_reading/bookshelf/templates/bookshelf/home.html
+2
-0
db.sqlite3
nishaespera_reading/db.sqlite3
+0
-0
base.css
nishaespera_reading/static/base.css
+13
-0
No files found.
nishaespera_reading/bookshelf/templates/bookshelf/add-author.html
View file @
f20e3f0b
...
...
@@ -4,6 +4,8 @@
<form
method=
'POST'
>
{% csrf_token %}
{{ form }}
<input
type=
'Submit'
value=
'Add Author'
>
<div
class=
'btns'
>
<input
type=
'Submit'
value=
'Add Author'
class=
'btn'
>
</div>
</form>
{% endblock %}
\ No newline at end of file
nishaespera_reading/bookshelf/templates/bookshelf/add-book.html
View file @
f20e3f0b
...
...
@@ -4,6 +4,9 @@
<form
method=
'POST'
>
{% csrf_token %}
{{ form }}
<input
type=
'Submit'
value=
'Add Book'
>
<div
class=
'btns'
>
<input
type=
'Submit'
value=
'Add Book'
class=
'btn'
>
</div>
</form>
{% endblock %}
\ No newline at end of file
nishaespera_reading/bookshelf/templates/bookshelf/author_details.html
View file @
f20e3f0b
...
...
@@ -12,6 +12,7 @@
<h4>
Age: {{ object.age }}
</h4>
<h4>
Nationality: {{ object.nationality }}
</h4>
<h4>
Biography: {{ object.bio }}
</h4>
<a
href=
"{{ object.get_absolute_url }}edit"
class=
"btn"
>
Edit Author
</a>
<div>
<h3>
Books by {{ object }} I love:
</h3>
</div>
...
...
@@ -25,7 +26,6 @@
{% endfor %}
</ul>
<div
class=
"btns"
>
<a
href=
"{{ object.get_absolute_url }}edit"
class=
"btn"
>
Edit Author
</a>
<a
href=
"/home/"
class=
"btn"
>
Home
</a>
<a
href=
"/books/"
class=
"btn"
>
Books
</a>
<a
href=
"/authors/"
class=
"btn"
>
Authors
</a>
...
...
nishaespera_reading/bookshelf/templates/bookshelf/book_details.html
View file @
f20e3f0b
...
...
@@ -19,8 +19,8 @@
<h4>
Year published: {{ object.year_published }}
</h4>
<h4>
ISBN: {{ object.ISBN }}
</h4>
<p>
Blurb: {{ object.blurb }}
</p>
<div
class=
"btns"
>
<a
href=
"{{ object.get_absolute_url }}edit"
class=
"btn"
>
Edit Book
</a>
<div
class=
"btns"
>
<a
href=
"/home/"
class=
"btn"
>
Home
</a>
<a
href=
"/books/"
class=
"btn"
>
Books
</a>
<a
href=
"/authors/"
class=
"btn"
>
Authors
</a>
...
...
nishaespera_reading/bookshelf/templates/bookshelf/edit-author.html
View file @
f20e3f0b
{% extends 'base.html' %}
{% block title %} Edit Author {% endblock %}
{% block header %}
<div
class=
"title"
>
<h1>
{{ object }}
</h1>
</div>
{% endblock %}
{% block body %}
<div
class=
"form"
>
<form
method=
'POST'
>
{% csrf_token %}
{{ form }}
<input
type=
'Submit'
value=
'Save Changes'
>
</form>
<div
class=
'btns'
>
<input
type=
'Submit'
value=
'Save Changes'
class=
'btn'
>
</div>
</form></div>
{% endblock %}
\ No newline at end of file
nishaespera_reading/bookshelf/templates/bookshelf/edit-book.html
View file @
f20e3f0b
{% extends 'base.html' %}
{% block title %} Edit Book {% endblock %}
{% block header %}
<div
class=
"title"
>
<h1>
{{ object.title }}
</h1>
</div>
{% endblock %}
{% block body %}
<form
method=
'POST'
>
{% csrf_token %}
{{ form }}
<input
type=
'Submit'
value=
'Save Changes'
>
<div
class=
'btns'
>
<input
type=
'Submit'
value=
'Save Changes'
class=
'btn'
>
</div>
</form>
{% endblock %}
\ No newline at end of file
nishaespera_reading/bookshelf/templates/bookshelf/home.html
View file @
f20e3f0b
...
...
@@ -19,6 +19,8 @@
<div
class=
"btns"
>
<a
href=
"/books/"
class=
"btn"
>
Books
</a>
<a
href=
"/authors/"
class=
"btn"
>
Authors
</a>
</div>
<div
class=
"btns"
>
<a
href=
"books/add"
class=
"btn"
>
Add Book
</a>
<a
href=
"authors/add"
class=
"btn"
>
Add Author
</a>
</div>
...
...
nishaespera_reading/db.sqlite3
View file @
f20e3f0b
No preview for this file type
nishaespera_reading/static/base.css
View file @
f20e3f0b
...
...
@@ -37,3 +37,16 @@ body {
display
:
flex
;
text-align
:
center
;
}
form
[
type
=
"text"
],
form
[
type
=
"number"
],
form
select
,
form
textarea
{
padding
:
10px
;
border-radius
:
8px
;
display
:
block
;
}
form
label
{
display
:
block
;
}
\ 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