From 1812ea90b50fec786a81a0233c270758fea26727 Mon Sep 17 00:00:00 2001 From: rockstardev Date: Thu, 23 May 2019 10:36:23 -0500 Subject: [PATCH] Applying default formatting rules on HTML --- .../Views/AppsPublic/ViewPointOfSale.cshtml | 683 +++++++++--------- 1 file changed, 343 insertions(+), 340 deletions(-) diff --git a/BTCPayServer/Views/AppsPublic/ViewPointOfSale.cshtml b/BTCPayServer/Views/AppsPublic/ViewPointOfSale.cshtml index 0ac4d320a..b0d08c90a 100644 --- a/BTCPayServer/Views/AppsPublic/ViewPointOfSale.cshtml +++ b/BTCPayServer/Views/AppsPublic/ViewPointOfSale.cshtml @@ -12,7 +12,7 @@ @Model.Title - + @@ -20,12 +20,12 @@ - + @if (Model.CustomCSSLink != null) { - + } - + @if (Model.EnableShoppingCart) { @@ -33,7 +33,7 @@ - + } - - - - - - - - - - - - -@if (Model.EnableShoppingCart) -{ - - -
- -
-
-
-
- -   - - 0 - + + -
-
- -
+ +
+
+ + @for (var index = 0; index < Model.Items.Length; index++) + { + var item = Model.Items[index]; + var image = item.Image; + var description = item.Description; + +
+ @if (!String.IsNullOrWhiteSpace(image)) + { + @:Card image cap + } +
+
@item.Title
+ @if (!String.IsNullOrWhiteSpace(description)) + { +

@description

+ } +
+ +
+ }
-
-
+ + +
+ } + else + { +
+
+

@Model.Title

+ +
+ @for (int x = 0; x < Model.Items.Length; x++) { - var item = Model.Items[index]; - var image = item.Image; - var description = item.Description; + var item = Model.Items[x]; -
- @if (!String.IsNullOrWhiteSpace(image)) +
+ @if (!String.IsNullOrWhiteSpace(item.Image)) { - @:Card image cap + Card image cap } -
-
@item.Title
- @if (!String.IsNullOrWhiteSpace(description)) +
+
@item.Title
+ @if (!String.IsNullOrWhiteSpace(item.Description)) { -

@description

+

@item.Description

+ } + +
+ - + } + @if (Model.ShowCustomAmount) + { +
+
+
Custom Amount
+

Create invoice to pay custom amount

+ +
+
}
- - - -
-} -else -{ -
-
-

@Model.Title

- -
- @for (int x = 0; x < Model.Items.Length; x++) - { - var item = Model.Items[x]; - -
- @if (!String.IsNullOrWhiteSpace(item.Image)) - { - Card image cap - } -
-
@item.Title
- @if (!String.IsNullOrWhiteSpace(item.Description)) - { -

@item.Description

- } - -
- -
- } - @if (Model.ShowCustomAmount) - { -
-
-
Custom Amount
-

Create invoice to pay custom amount

- -
- -
- } -
-
-
-} + }