Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
warehouse-management
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
1
Merge Requests
1
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
Ascend
warehouse-management
Commits
1e617d45
Commit
1e617d45
authored
May 07, 2021
by
Darrick Yong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
start table styling
parent
f63eb4d8
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
51 additions
and
16 deletions
+51
-16
header.css
frontend/public/stylesheets/header.css
+1
-0
order.css
frontend/public/stylesheets/order.css
+20
-3
Header.jsx
frontend/src/components/header/Header.jsx
+1
-2
ItemDetails.jsx
frontend/src/components/order/ItemDetails.jsx
+9
-3
OrderDetails.jsx
frontend/src/components/order/OrderDetails.jsx
+20
-8
No files found.
frontend/public/stylesheets/header.css
View file @
1e617d45
.header
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
padding
:
10px
20px
;
height
:
50px
;
...
...
frontend/public/stylesheets/order.css
View file @
1e617d45
...
...
@@ -126,8 +126,9 @@
.order-details-container
{
overflow
:
hidden
;
padding
:
0
50px
2
0px
;
padding
:
20px
5
0px
;
box-sizing
:
border-box
;
/* background: white; */
}
.animate
{
...
...
@@ -135,6 +136,22 @@
max-height
:
200px
;
}
.order-details-header
{
padding
:
4px
0
;
font-size
:
20px
;
font-weight
:
700
;
border-bottom
:
1px
solid
red
;
}
.order-detail-table
{
/* margin: 20px; */
/* border-spacing: 30px; */
}
.order-details
thead
{
font-weight
:
700
;
}
.item-detail
~
.item-detail
{
margin-top
:
10px
;
border-top
:
1px
solid
red
;
}
frontend/src/components/header/Header.jsx
View file @
1e617d45
...
...
@@ -5,8 +5,7 @@ import Logout from "../session/Logout";
const
Header
=
()
=>
{
return
(
<
div
className=
"header"
>
Warehouse Management
<
Login
/>
<
div
>
Warehouse Management
</
div
>
<
Logout
/>
</
div
>
);
...
...
frontend/src/components/order/ItemDetails.jsx
View file @
1e617d45
...
...
@@ -3,9 +3,15 @@ const ItemDetails = ({ item }) => {
const
{
itemId
,
itemName
,
itemQuantity
,
itemPrice
,
itemSku
}
=
item
;
return
(
<
li
className=
"item-detail"
>
{
`${itemName} -- x ${itemQuantity} bought at ${itemPrice}/ea.`
}
</
li
>
<
tr
className=
"item-detail"
>
<
th
>
{
itemSku
}
</
th
>
<
th
>
{
itemName
}
</
th
>
<
th
>
{
`$${itemPrice}`
}
</
th
>
<
th
>
{
itemQuantity
}
</
th
>
</
tr
>
// <li className="item-detail">
// {`${itemName} -- x ${itemQuantity} bought at ${itemPrice}/ea.`}
// </li>
)
}
...
...
frontend/src/components/order/OrderDetails.jsx
View file @
1e617d45
...
...
@@ -5,17 +5,29 @@ const OrderDetails = ({ order, showDetails }) => {
return
(
<
div
className=
{
`order-details ${showDetails ? "animate" : ""}`
}
>
<
div
className=
"order-details-container"
>
<
div
>
{
`Order Details - Warehouse Order #: ${order.id}`
}
{
`Warehouse Order #: ${order.id}`
}
<
div
className=
"order-details-header"
>
Order Details
</
div
>
<
ul
>
{
order
.
orderItems
.
map
(
item
=>
(
<
ItemDetails
key=
{
item
.
itemId
}
item=
{
item
}
/>
<
table
className=
"order-detail-table"
>
<
thead
>
<
tr
>
<
th
>
SKU #
</
th
>
<
th
>
Name
</
th
>
<
th
>
Price
</
th
>
<
th
>
Quantity
</
th
>
</
tr
>
</
thead
>
<
tbody
>
{
order
.
orderItems
.
map
((
item
)
=>
(
<
ItemDetails
key=
{
item
.
itemId
}
item=
{
item
}
/>
))
}
</
ul
>
</
tbody
>
</
table
>
</
div
>
</
div
>
)
)
;
}
export
default
OrderDetails
;
\ 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