Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rachpurisima_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
Rachel
rachpurisima_reading
Commits
ba420ee3
Commit
ba420ee3
authored
Apr 25, 2023
by
rachbit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added edit-book.html
parent
7e8679f1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
14 deletions
+39
-14
book_details.html
...a_reading/bookshelf/templates/bookshelf/book_details.html
+6
-0
edit-book.html
...sima_reading/bookshelf/templates/bookshelf/edit-book.html
+21
-13
base.html
rachpurisima_reading/templates/base.html
+12
-1
No files found.
rachpurisima_reading/bookshelf/templates/bookshelf/book_details.html
View file @
ba420ee3
...
@@ -26,6 +26,12 @@ fundamental.<br>
...
@@ -26,6 +26,12 @@ fundamental.<br>
<li>
{{object.blurb}}
</li>
<li>
{{object.blurb}}
</li>
</ul>
</ul>
<br>
<br>
<div
class=
"text-center"
>
<form
action=
"edit"
>
<input
type=
"submit"
value=
"Edit Book"
>
</form>
</div>
<br>
{% endblock %}
{% endblock %}
{% block navbar %}
{% block navbar %}
<li><a
href=
"/bookshelf/home"
>
Home
</a></li>
<li><a
href=
"/bookshelf/home"
>
Home
</a></li>
...
...
rachpurisima_reading/bookshelf/templates/bookshelf/edit-book.html
View file @
ba420ee3
{% extends 'base.html' %}
{% extends 'base.html' %}
{% load static %}
{% load static %}
{% block title %}Edit Book{% endblock %}
{% block content %}
{% block title %}Edit a Book{% endblock %}
<div
class=
"text-center"
>
{% block header %}
<br>
<cite><h1
class=
"text-center"
>
May pagkakamali ba ako?
</h1></cite>
<br>
{% endblock %}
<form
method=
"post"
>
{% block subtitle %}
{% csrf_token %}
<p
class=
"text-center"
>
{% for field in form %}
feel free to edit book details in my collection.
<br>
{{field.label}}:{{field}}
<br><br>
-
{% endfor %}
</p>
<input
type=
"submit"
value=
"Save Changes"
>
{% endblock %}
</form>
<div
class=
"text-center"
>
</div>
</div>
{% block form %}
<form
method=
"post"
>
{% csrf_token %}
{{ form.as_p }}
<input
type=
"submit"
value=
"Save Changes"
>
</form>
</div>
{% endblock %}
{% endblock %}
rachpurisima_reading/templates/base.html
View file @
ba420ee3
...
@@ -14,6 +14,10 @@
...
@@ -14,6 +14,10 @@
margin
:
0
auto
;
margin
:
0
auto
;
width
:
300px
;
width
:
300px
;
}
}
.container-custom
{
margin
:
0
auto
;
width
:
500px
;
}
</style>
</style>
<title>
{% block title %}My amazing site{% endblock %}
</title>
<title>
{% block title %}My amazing site{% endblock %}
</title>
<nav
class=
"navbar navbar-custom"
>
<nav
class=
"navbar navbar-custom"
>
...
@@ -34,7 +38,7 @@
...
@@ -34,7 +38,7 @@
{% block subtitle %}{% endblock %}
{% block subtitle %}{% endblock %}
</figcaption>
</figcaption>
</blockquote>
</blockquote>
<figure
class=
"container
-fluid
"
>
<figure
class=
"container
container-custom
"
>
<div
class=
"text-left"
>
<div
class=
"text-left"
>
{% block content %}{% endblock %}
{% block content %}{% endblock %}
</div>
</div>
...
@@ -47,4 +51,11 @@
...
@@ -47,4 +51,11 @@
</figure>
</figure>
</figure>
</figure>
</body>
</body>
<nav
class=
"navbar navbar-custom"
>
<div
class=
"container-center"
>
<ul
class=
"nav navbar-nav navbar-center"
>
{% block footer %}{% endblock %}
</ul>
</div>
</nav>
</html>
</html>
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