From 118f386c7cc90d8781dc5838ccfcf0e5b4eda542 Mon Sep 17 00:00:00 2001 From: Eric Fleming Date: Thu, 17 Jan 2019 20:33:00 -0500 Subject: [PATCH] Applying some style updates - Moving the total out of the foreach so it only displays once - Making the total display proper number of Decimals --- src/Web/Views/Basket/Index.cshtml | 48 +++++++++++++++---------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/src/Web/Views/Basket/Index.cshtml b/src/Web/Views/Basket/Index.cshtml index 35b30b1..1cc318d 100644 --- a/src/Web/Views/Basket/Index.cshtml +++ b/src/Web/Views/Basket/Index.cshtml @@ -22,7 +22,7 @@
Cost
- @for (int i=0; i< Model.Items.Count; i++) + @for (int i = 0; i < Model.Items.Count; i++) { var item = Model.Items[i];
@@ -42,32 +42,32 @@
- @*
- @item.ProductId -
*@ - -
-
-
-
Total
-
- -
-
-
$ @Model.Total()
-
- -
-
-
- @**@ -
-
-
} + +
+
+
+
Total
+
+ +
+
+
$ @Model.Total().ToString("N2")
+
+ +
+
+
+ @**@ +
+
+
+
+ asp-action="Index"> + [ Update ] +