Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
anchisilang_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
Anchilla Vera Marie Silang
anchisilang_reading
Commits
0e576868
Commit
0e576868
authored
Apr 29, 2023
by
Anchilla Vera Marie Silang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added New and Update Book and Author pages
parent
77a186e1
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
77 additions
and
1 deletion
+77
-1
add-author.html
anchisilang_reading/templates/add-author.html
+15
-0
add-book.html
anchisilang_reading/templates/add-book.html
+15
-0
author_details.html
anchisilang_reading/templates/author_details.html
+8
-0
authors.html
anchisilang_reading/templates/authors.html
+1
-1
book_details.html
anchisilang_reading/templates/book_details.html
+4
-0
edit-author.html
anchisilang_reading/templates/edit-author.html
+15
-0
edit-book.html
anchisilang_reading/templates/edit-book.html
+15
-0
home.html
anchisilang_reading/templates/home.html
+4
-0
No files found.
anchisilang_reading/templates/add-author.html
0 → 100644
View file @
0e576868
{%extends "base.html"%}
{% load static %}
{% block content%}
<title>
Add New Author
</title>
<form
method=
"POST"
>
{% csrf_token %}
{{ form.as_p }}
<input
type=
"submit"
value=
"Add Author"
>
</form>
{% endblock content%}
\ No newline at end of file
anchisilang_reading/templates/add-book.html
0 → 100644
View file @
0e576868
{%extends "base.html"%}
{% load static %}
{% block content%}
<title>
Add New Book
</title>
<form
method=
"POST"
enctype =
"multipart/form-data"
>
{% csrf_token %}
{{ form.as_p }}
<input
type=
"submit"
value=
"Add Book"
>
</form>
{% endblock content%}
\ No newline at end of file
anchisilang_reading/templates/author_details.html
View file @
0e576868
...
...
@@ -10,6 +10,12 @@
<h2>
{{object.nationality}}
</h2>
<h2>
{{object.bio}}
</h2>
<br>
<a
href=
"/authors/{{object.pk}}/edit"
>
<input
type=
"button"
value=
"Edit Author"
></a>
<br>
<br>
<h1>
Books by {{object.first_name}} {{object.last_name}} I love:
</h1>
{% for details in bookdetail %}
<li>
...
...
@@ -18,6 +24,8 @@
</li>
{%endfor%}
<br>
<br>
<div
style=
"text-align:center;"
>
<a
href=
"/home"
>
Home
</a>
<a
href=
"/books"
>
Books
</a>
...
...
anchisilang_reading/templates/authors.html
View file @
0e576868
...
...
@@ -11,7 +11,7 @@
<h1>
Anchi's Favorite Authors:
</h1>
{% for author in authors_list %}
<li>
<a
href=
"{% url 'author
_
details' author.pk %}"
>
<a
href=
"{% url 'authordetails' author.pk %}"
>
{{author.first_name}} {{author.last_name}}
<br>
</a>
</li>
...
...
anchisilang_reading/templates/book_details.html
View file @
0e576868
...
...
@@ -17,4 +17,8 @@
<a
href=
"/books"
>
Books
</a>
<a
href=
"/authors"
>
Authors
</a>
</div>
<br>
<br>
<a
href=
"/books/{{object.pk}}/edit"
>
<input
type=
"button"
value=
"Edit Book"
></a>
{% endblock content%}
anchisilang_reading/templates/edit-author.html
0 → 100644
View file @
0e576868
{%extends "base.html"%}
{% load static %}
{% block content%}
<title>
Edit Author
</title>
<form
method=
"POST"
>
{% csrf_token %}
{{ form.as_p }}
<input
type=
"submit"
value=
"Save Changes"
>
</form>
{% endblock content%}
\ No newline at end of file
anchisilang_reading/templates/edit-book.html
0 → 100644
View file @
0e576868
{%extends "base.html"%}
{% load static %}
{% block content%}
<title>
Edit Book
</title>
<form
method=
"POST"
>
{% csrf_token %}
{{ form.as_p }}
<input
type=
"submit"
value=
"Save Changes"
>
</form>
{% endblock content%}
\ No newline at end of file
anchisilang_reading/templates/home.html
View file @
0e576868
...
...
@@ -16,5 +16,9 @@
<a
href=
"/books"
>
Books
</a>
<a
href=
"/authors"
>
Authors
</a>
</div>
<div
style=
"text-align:center;"
>
<a
href=
"/books/add"
>
Add Book
</a>
<a
href=
"/author/add"
>
Add Author
</a>
</div>
{% endblock content%}
\ 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