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>
<li>
{{object.blurb}}
</li>
</ul>
<br>
<div
class=
"text-center"
>
<form
action=
"edit"
>
<input
type=
"submit"
value=
"Edit Book"
>
</form>
</div>
<br>
{% endblock %}
{% block navbar %}
<li><a
href=
"/bookshelf/home"
>
Home
</a></li>
...
...
rachpurisima_reading/bookshelf/templates/bookshelf/edit-book.html
View file @
ba420ee3
{% extends 'base.html' %}
{% load static %}
{% block title %}Edit Book{% endblock %}
{% block content %}
<div
class=
"text-center"
>
<br>
<br>
<form
method=
"post"
>
{% csrf_token %}
{% for field in form %}
{{field.label}}:{{field}}
<br><br>
{% endfor %}
<input
type=
"submit"
value=
"Save Changes"
>
</form>
</div>
{% block title %}Edit a Book{% endblock %}
{% block header %}
<cite><h1
class=
"text-center"
>
May pagkakamali ba ako?
</h1></cite>
{% endblock %}
{% block subtitle %}
<p
class=
"text-center"
>
feel free to edit book details in my collection.
<br>
-
</p>
{% endblock %}
<div
class=
"text-center"
>
</div>
{% block form %}
<form
method=
"post"
>
{% csrf_token %}
{{ form.as_p }}
<input
type=
"submit"
value=
"Save Changes"
>
</form>
</div>
{% endblock %}
rachpurisima_reading/templates/base.html
View file @
ba420ee3
...
...
@@ -14,6 +14,10 @@
margin
:
0
auto
;
width
:
300px
;
}
.container-custom
{
margin
:
0
auto
;
width
:
500px
;
}
</style>
<title>
{% block title %}My amazing site{% endblock %}
</title>
<nav
class=
"navbar navbar-custom"
>
...
...
@@ -34,7 +38,7 @@
{% block subtitle %}{% endblock %}
</figcaption>
</blockquote>
<figure
class=
"container
-fluid
"
>
<figure
class=
"container
container-custom
"
>
<div
class=
"text-left"
>
{% block content %}{% endblock %}
</div>
...
...
@@ -47,4 +51,11 @@
</figure>
</figure>
</body>
<nav
class=
"navbar navbar-custom"
>
<div
class=
"container-center"
>
<ul
class=
"nav navbar-nav navbar-center"
>
{% block footer %}{% endblock %}
</ul>
</div>
</nav>
</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