Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gabigarrero_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
Gabriel G. Garrero
gabigarrero_reading
Commits
bc9e16e0
Commit
bc9e16e0
authored
Apr 25, 2023
by
Gabriel G. Garrero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Created forms.py and edited home.html to include links to add books and authors
parent
2de760fa
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
+19
-2
forms.py
gabigarrero_reading/bookshelf/forms.py
+12
-0
home.html
gabigarrero_reading/bookshelf/templates/bookshelf/home.html
+7
-2
No files found.
gabigarrero_reading/bookshelf/forms.py
0 → 100644
View file @
bc9e16e0
from
django
import
forms
from
.models
import
Books
,
Author
class
BooksForm
(
forms
.
ModelForm
):
class
Meta
:
model
=
Books
fields
=
"__all__"
class
AuthorForm
(
forms
.
ModelForm
):
class
Meta
:
model
=
Author
fields
=
"__all__"
\ No newline at end of file
gabigarrero_reading/bookshelf/templates/bookshelf/home.html
View file @
bc9e16e0
...
@@ -10,8 +10,13 @@
...
@@ -10,8 +10,13 @@
<p>
I don't actually read books so I ended up just putting some of the most famous books and authors for my data.
</p>
<p>
I don't actually read books so I ended up just putting some of the most famous books and authors for my data.
</p>
<div
class =
"links"
>
<div
class =
"links"
>
<a
class =
"flex-items"
href=
'/bookshelf/books/'
>
Books
</a>
<a
class =
"flex-items"
href =
'/bookshelf/books/'
>
Books
</a>
<a
class =
"flex-items"
href=
'/bookshelf/authors/'
>
Authors
</a>
<a
class =
"flex-items"
href =
'/bookshelf/authors/'
>
Authors
</a>
</div>
<div
class =
"add-links"
>
<a
class =
"flex-items"
href =
'/bookshelf/books/add'
>
Add Book
</a>
<a
class =
"flex-items"
href =
'/bookshelf/authors/add'
>
Add Author
</a>
</div>
</div>
{% endblock %}
{% endblock %}
\ 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