Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
frozen
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CSE6
frozen
Commits
488feaf8
Commit
488feaf8
authored
2 years ago
by
ratyann
Browse files
Options
Downloads
Patches
Plain Diff
add items view
parent
2aa8bd48
No related branches found
Branches containing commit
No related tags found
3 merge requests
!9
Add item
,
!8
Add item
,
!7
add items view
Pipeline
#13696
passed
2 years ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/tjts5901/templates/addItem.html
+39
-0
39 additions, 0 deletions
src/tjts5901/templates/addItem.html
src/tjts5901/views.py
+10
-0
10 additions, 0 deletions
src/tjts5901/views.py
with
49 additions
and
0 deletions
src/tjts5901/templates/addItem.html
0 → 100644
+
39
−
0
View file @
488feaf8
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
>
<title>
Add item
</title>
<link
href=
"https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css"
rel=
"stylesheet"
integrity=
"sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD"
crossorigin=
"anonymous"
>
</head>
<body>
<header>
</header>
<main>
<form
class=
"container-fluid"
action=
"#"
method=
"GET"
>
<div
class=
"container"
>
<div
class=
"mb-3"
>
<label
for=
"email"
class=
"form-label"
>
Email address
</label>
<input
type=
"email"
class=
"form-control"
id=
"email"
aria-describedby=
"emailHelp"
>
</div>
<div
class=
"mb-3"
>
<label
for=
"nItem"
class=
"form-label"
>
Item's name
</label>
<input
type=
"text"
class=
"form-control"
id=
"nItem"
aria-describedby=
"emailHelp"
>
</div>
<div
class=
"mb-3"
>
<label
for=
"description"
class=
"form-label"
>
Description
</label>
<textarea
class=
"form-control"
id=
"description"
maxlength=
"700"
></textarea>
</div>
<div
class=
"mb-3"
>
<label
for=
"sPrice"
class=
"form-label"
>
Starting price
</label>
<input
type=
"number"
class=
"form-control"
id=
"sPrice"
min=
"0"
max=
"100000000"
>
</div>
<button
type=
"submit"
class=
"btn btn-primary"
>
Submit
</button>
</div>
</form>
</main>
<footer>
</footer>
</body>
</html>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/tjts5901/views.py
+
10
−
0
View file @
488feaf8
...
...
@@ -22,3 +22,13 @@ def index() -> str:
# of arguments to be used in the template. The template file is located in the templates directory.
html
=
render_template
(
"
index.html.j2
"
,
title
=
"
TJTS5901 Example. It was changed by Arno.
"
)
return
html
@bp.route
(
"
/addItem
"
)
def
addItem
()
->
str
:
"""
AddItem page.
"""
Item
=
render_template
(
"
addItem.html
"
,
title
=
"
Adding items
"
)
return
Item
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment