Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
library-app-django
Project
Project
Details
Activity
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
Ilham Maulana
library-app-django
Commits
bd8eb53d
Commit
bd8eb53d
authored
Jul 01, 2024
by
impfundev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: book template file name
parent
7a65a138
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
4 additions
and
4 deletions
+4
-4
book.html
books/templates/book.html
+2
-2
book_create_form.html
books/templates/book_create_form.html
+0
-0
book_delete_form.html
books/templates/book_delete_form.html
+0
-0
book_table_data.html
books/templates/book_table_data.html
+0
-0
book_update_form.html
books/templates/book_update_form.html
+0
-0
views.py
books/views.py
+2
-2
No files found.
books/templates/
index
.html
→
books/templates/
book
.html
View file @
bd8eb53d
...
@@ -9,8 +9,8 @@
...
@@ -9,8 +9,8 @@
>
>
<i
class=
"bi bi-plus-circle"
></i>
Add Book
<i
class=
"bi bi-plus-circle"
></i>
Add Book
</button>
</button>
{% include "create_form.html" %}
{% include "
book_
create_form.html" %}
</div>
</div>
{% include "
table_data.html" %} {% include "
delete_form.html" %}
{% include "
book_table_data.html" %} {% include "book_
delete_form.html" %}
</div>
</div>
{% endblock dashboard %}
{% endblock dashboard %}
books/templates/create_form.html
→
books/templates/
book_
create_form.html
View file @
bd8eb53d
File moved
books/templates/delete_form.html
→
books/templates/
book_
delete_form.html
View file @
bd8eb53d
File moved
books/templates/table_data.html
→
books/templates/
book_
table_data.html
View file @
bd8eb53d
File moved
books/templates/update_form.html
→
books/templates/
book_
update_form.html
View file @
bd8eb53d
File moved
books/views.py
View file @
bd8eb53d
...
@@ -18,7 +18,7 @@ def index(request):
...
@@ -18,7 +18,7 @@ def index(request):
Book
.
objects
.
create
(
title
=
title
,
description
=
description
)
Book
.
objects
.
create
(
title
=
title
,
description
=
description
)
return
render
(
request
,
"
index
.html"
,
context
)
return
render
(
request
,
"
book
.html"
,
context
)
def
update
(
request
,
id
):
def
update
(
request
,
id
):
...
@@ -51,4 +51,4 @@ def delete(request, id):
...
@@ -51,4 +51,4 @@ def delete(request, id):
book
.
delete
()
book
.
delete
()
return
HttpResponseRedirect
(
"/dashboard/books"
)
return
HttpResponseRedirect
(
"/dashboard/books"
)
return
render
(
request
,
"
index
.html"
,
context
)
return
render
(
request
,
"
book
.html"
,
context
)
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