Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
janang_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
Jan Ericsson Ong Ang
janang_reading
Commits
519e668e
Commit
519e668e
authored
Apr 27, 2023
by
Jan Ericsson Ong Ang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Edited html template files
parent
fa5ac0e4
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
78 deletions
+14
-78
add-author.html
janang_reading/bookshelf/templates/bookshelf/add-author.html
+3
-18
add-book.html
janang_reading/bookshelf/templates/bookshelf/add-book.html
+3
-20
author_details.html
...reading/bookshelf/templates/bookshelf/author_details.html
+1
-1
book_details.html
...g_reading/bookshelf/templates/bookshelf/book_details.html
+1
-1
edit-author.html
...ng_reading/bookshelf/templates/bookshelf/edit-author.html
+3
-18
edit-book.html
janang_reading/bookshelf/templates/bookshelf/edit-book.html
+3
-20
No files found.
janang_reading/bookshelf/templates/bookshelf/add-author.html
View file @
519e668e
{% extends 'base.html' %}
{% load static %}
{% block title %}Add New Author{% endblock %}
{% block content %}
<form
method=
"
post
"
>
<form
method=
"
POST
"
>
{% csrf_token %}
<label>
First Name:
</label>
<input
id=
"first_name"
type=
"text"
name=
"first_name"
max
length=
"50"
/><br>
<label>
Last Name:
</label>
<input
id=
"last_name"
type=
"text"
name=
"last_name"
max
length=
"100"
/><br>
<label>
Age:
</label>
<input
id=
"age"
type=
"number"
name=
"age"
/><br>
<label>
Nationality:
</label>
<input
id=
"nationality"
type=
"text"
name=
"nationality"
/><br>
<label>
Bio:
</label>
<input
id=
"bio"
type=
"text"
name=
"bio"
/><br>
{{ form.as_p }}
<input
type=
"Submit"
value=
"Add Author"
>
</form>
<button
type=
"button"
>
<a
href=
"/bookshelf/authors/{{ author.id }}/details/"
>
Add Author
</a>
</button><br>
{% endblock %}
\ No newline at end of file
janang_reading/bookshelf/templates/bookshelf/add-book.html
View file @
519e668e
{% extends 'base.html' %}
{% load static %}
{% block title %}Add New Book{% endblock %}
{% block content %}
<form
method=
"
post
"
>
<form
method=
"
POST
"
>
{% csrf_token %}
<label>
Title:
</label>
<input
id=
"title"
type=
"text"
name=
"title"
max
length=
"50"
/><br>
<label>
Author:
</label>
<input
id=
"author"
type=
"text"
name=
"author"
max
length=
"100"
/><br>
<label>
Publisher:
</label>
<input
id=
"publisher"
type=
"text"
name=
"publisher"
/><br>
<label>
Year Published:
</label>
<input
id=
"year_published"
type=
"number"
name=
"year_published"
/><br>
<label>
ISBN:
</label>
<input
id=
"ISBN"
type=
"number"
name=
"ISBN"
/><br>
<label>
Blurb:
</label>
<input
id=
"blurb"
type=
"text"
name=
"blurb"
/><br>
{{ form.as_p }}
<input
type=
"Submit"
value=
"Add Book"
>
</form>
<button
type=
"button"
>
<a
href=
"/bookshelf/books/{{ books.id }}/details/"
>
Add Book
</a>
</button><br>
{% endblock %}
\ No newline at end of file
janang_reading/bookshelf/templates/bookshelf/author_details.html
View file @
519e668e
...
...
@@ -10,7 +10,7 @@
<p>
{{ author.bio }}
</p>
<button
type=
"button"
>
<a
href=
"/bookshelf/authors/{{
author
.id }}/edit/"
>
<a
href=
"/bookshelf/authors/{{
object
.id }}/edit/"
>
Edit Author
</a>
</button><br>
...
...
janang_reading/bookshelf/templates/bookshelf/book_details.html
View file @
519e668e
...
...
@@ -11,7 +11,7 @@
<p>
{{ books.ISBN }}
</p>
<p>
{{ books.blurb }}
</p>
<button
type=
"button"
>
<a
href=
"/bookshelf/books/{{
books
.id }}/edit/"
>
<a
href=
"/bookshelf/books/{{
object
.id }}/edit/"
>
Edit Book
</a>
</button><br>
...
...
janang_reading/bookshelf/templates/bookshelf/edit-author.html
View file @
519e668e
{% extends 'base.html' %}
{% load static %}
{% block title %}Edit Author{% endblock %}
{% block content %}
<form
method=
"
post
"
>
<form
method=
"
POST
"
>
{% csrf_token %}
<label>
First Name:
</label>
<input
id=
"first_name"
type=
"text"
name=
"first_name"
max
length=
"50"
/><br>
<label>
Last Name:
</label>
<input
id=
"last_name"
type=
"text"
name=
"last_name"
max
length=
"100"
/><br>
<label>
Age:
</label>
<input
id=
"age"
type=
"number"
name=
"age"
/><br>
<label>
Nationality:
</label>
<input
id=
"nationality"
type=
"text"
name=
"nationality"
/><br>
<label>
Bio:
</label>
<input
id=
"bio"
type=
"text"
name=
"bio"
/><br>
{{ form.as_p }}
<input
type=
"Submit"
value=
"Save Changes"
>
</form>
<button
type=
"button"
>
<a
href=
"/bookshelf/authors/{{ author.id }}/details/"
>
Add Author
</a>
</button><br>
{% endblock %}
\ No newline at end of file
janang_reading/bookshelf/templates/bookshelf/edit-book.html
View file @
519e668e
{% extends 'base.html' %}
{% load static %}
{% block title %}Edit Book{% endblock %}
{% block content %}
<form
method=
"
post
"
>
<form
method=
"
POST
"
>
{% csrf_token %}
<label>
Title:
</label>
<input
id=
"title"
type=
"text"
name=
"title"
max
length=
"50"
/><br>
<label>
Author:
</label>
<input
id=
"author"
type=
"text"
name=
"author"
max
length=
"100"
/><br>
<label>
Publisher:
</label>
<input
id=
"publisher"
type=
"text"
name=
"publisher"
/><br>
<label>
Year Published:
</label>
<input
id=
"year_published"
type=
"number"
name=
"year_published"
/><br>
<label>
ISBN:
</label>
<input
id=
"ISBN"
type=
"number"
name=
"ISBN"
/><br>
<label>
Blurb:
</label>
<input
id=
"blurb"
type=
"text"
name=
"blurb"
/><br>
{{ form.as_p }}
<input
type=
"Submit"
value=
"Save Changes"
>
</form>
<button
type=
"button"
>
<a
href=
"/bookshelf/books/{{ books.id }}/details/"
>
Add Book
</a>
</button><br>
{% 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