Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nisum-hackathon-2023
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
Hammad ul Azeem
nisum-hackathon-2023
Commits
dd55aa06
Commit
dd55aa06
authored
Jun 08, 2023
by
Hammad ul Azeem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
index.ejs
parents
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
76 additions
and
0 deletions
+76
-0
index.ejs
index.ejs
+76
-0
No files found.
index.ejs
0 → 100644
View file @
dd55aa06
<!DOCTYPE html>
<html>
<head>
<title>
Supply Chain Management
</title>
<link
rel=
"stylesheet"
href=
"https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css"
>
</head>
<body>
<div
class=
"container"
>
<h1
class=
"my-5"
>
Supply Chain Management
</h1>
<div
class=
"my-4"
>
<h2>
Create Item
</h2>
<form
action=
"/create-item"
method=
"POST"
class=
"mb-3"
>
<div
class=
"row"
>
<div
class=
"col-md-4"
>
<div
class=
"form-floating"
>
<input
type=
"text"
class=
"form-control"
name=
"name"
id=
"name"
required
>
<label
for=
"name"
>
Name
</label>
</div>
</div>
<div
class=
"col-md-4"
>
<div
class=
"form-floating"
>
<input
type=
"number"
class=
"form-control"
name=
"quantity"
id=
"quantity"
required
>
<label
for=
"quantity"
>
Quantity
</label>
</div>
</div>
<div
class=
"col-md-4"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
Create Item
</button>
</div>
</div>
</form>
</div>
<div
class=
"my-4"
>
<h2>
Items
</h2>
<table
class=
"table"
>
<thead>
<tr>
<th>
ID
</th>
<th>
Name
</th>
<th>
Quantity
</th>
<th>
Status
</th>
<th>
Actions
</th>
</tr>
</thead>
<tbody>
<
%
for
(
const
item
of
items
)
{
%
>
<tr>
<td><
%=
item
.
id
%
></td>
<td><
%=
item
.
name
%
></td>
<td><
%=
item
.
quantity
%
></td>
<td><
%=
item
.
status
%
></td>
<td>
<
%
if
(
item
.
status =
==
'
Created
')
{
%
>
<form
action=
"/mark-in-transit"
method=
"POST"
style=
"display: inline;"
>
<input
type=
"hidden"
name=
"itemId"
value=
"<%= item.id %>"
>
<button
type=
"submit"
class=
"btn btn-success"
>
Mark In Transit
</button>
</form>
<
%
}
else
if
(
item
.
status =
==
'
InTransit
')
{
%
>
<form
action=
"/mark-delivered"
method=
"POST"
style=
"display: inline;"
>
<input
type=
"hidden"
name=
"itemId"
value=
"<%= item.id %>"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
Mark Delivered
</button>
</form>
<
%
}
%
>
</td>
</tr>
<
%
}
%
>
</tbody>
</table>
</div>
</div>
<script
src=
"https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"
></script>
</body>
</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