From 0aeff00dfe98ed010e711518c99bac64439fac4f Mon Sep 17 00:00:00 2001 From: Rene Vergara A Date: Thu, 14 Jul 2022 21:35:06 -0500 Subject: [PATCH] Order list redesigned to meet order creation format --- CHANGELOG.md | 2 +- src/app/listorders/listorders.component.css | 55 +++- src/app/listorders/listorders.component.html | 271 ++++++++----------- src/app/order/order.component.html | 45 ++- 4 files changed, 185 insertions(+), 188 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c4b6dcf..2ff1ab0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,7 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ### Changed - +- (2022-07-14) Order list reformated - some unused css classes removed. - Added viewing key field to owner model - (2022-07-11) Order's list UI updated (Alpha version) + Paid status icons added to order's title diff --git a/src/app/listorders/listorders.component.css b/src/app/listorders/listorders.component.css index 04c27d7..7e750e5 100644 --- a/src/app/listorders/listorders.component.css +++ b/src/app/listorders/listorders.component.css @@ -51,15 +51,58 @@ img.icon{ } .total{ - font-size: 15px; - font-family: 'Roboto Mono', monospace; + font-family: Roboto Mono; margin: auto; } -img.total{ - margin-bottom: -15px !important; +.tbheader { + font-family: Roboto Mono; + font-size: 14px; + font-weight: 700; } -.central{ - max-width: 450px; +.tbdetail { + font-family: Roboto Mono; + font-size: 14px; + font-weight: 400; } + +.totalsTbl { + margin-top: 15px; + border-bottom: solid; + border-color: lightgray; + border-width: 2px; + background: lightcyan; +} + +.totalsHdr { + font-family: Roboto Mono !important; + text-align: center; + margin-bottom: 50px; +} + +.totalsHdrTitle { + font-size: 18px; + font-weight: 700; +} + +.totalsHdrDetail { + font-size: 16px; + font-weight: 600; + margin-bottom: 5px; +} + +.orderList { + font-family: Roboto Mono !important; +} + +.orderListTitle { + font-size: 16px; + font-weight: 600; +} + +.orderListTitleDescr { + font-size: 16px; + font-weight: 600; + text-align: justify; +} \ No newline at end of file diff --git a/src/app/listorders/listorders.component.html b/src/app/listorders/listorders.component.html index 4e42ba8..d9676bb 100644 --- a/src/app/listorders/listorders.component.html +++ b/src/app/listorders/listorders.component.html @@ -5,157 +5,124 @@ Back to Shop - -
-
- - - - - -
-

Today's Total:

-
- - {{todayTotal | number: '1.06'}} -
-
-

Overall Total:

-
- - {{total | number: '1.06'}} -
-
-
-
- -
-
- - - - - -  {{order.totalZec | number: '1.06'}} - - - - -
- {{order.timestamp | date: 'short'}} -
-
-
-
-
Order Id: {{order._id}}
-
- - - - - - - - - - -
Order Total: - {{ order.totalZec | number: '1.06'}} -
- 1.0 = {{ order.price | currency: order.currency.toUpperCase()}} - - {{ order.total | number: '1.02' | currency: order.currency.toUpperCase()}} -
+ + + + + + + +
+
Today's Total:
+
+ {{todayTotal | number: '1.06'}} +
+
+
Overall Total:
+
+ {{total | number: '1.06'}} +
+
+ +
+ + + + +
+ {{order.totalZec | number: '1.06'}} +
+
+ + + + + + +
+ + + {{order.timestamp | date: 'short'}} +
+
+
+
+
Order Id: {{order._id}}
+
- - - - - - - - - - - - - - - - - -
Item - Qty. - Total -
{{item.name}} - {{item.qty}} - {{item.qty * item.cost | number:'1.02' | currency: order.currency.toUpperCase() }} -
- -
-
-

No orders

-
-
+ + + + + + + + + + + + + + + + +
Item + Qty. + Total +
{{item.name}} + {{item.qty}} + {{item.qty * item.cost | number:'1.02' | currency: order.currency.toUpperCase() }} +
+ + +

No orders

+
diff --git a/src/app/order/order.component.html b/src/app/order/order.component.html index a81ca57..c67f8af 100644 --- a/src/app/order/order.component.html +++ b/src/app/order/order.component.html @@ -1,6 +1,6 @@
No open order! @@ -32,7 +32,6 @@ margin-bottom: -3px;" src="/assets/zec_rv.png" >1.0 ≅ {{ price | currency: getCurrency()}} - {{total | currency: getCurrency()}} @@ -41,45 +40,33 @@ - - + + - - - - - - + + +
Item + Item Qty. + Qty. Total
{{item.name}} + width="55%">{{item.name}} {{item.qty}} + width="15%">{{item.qty}}