diff --git a/src/MistoxWebsite.Client/src/app/app.html b/src/MistoxWebsite.Client/src/app/app.html index ad13f46..18a237f 100644 --- a/src/MistoxWebsite.Client/src/app/app.html +++ b/src/MistoxWebsite.Client/src/app/app.html @@ -35,24 +35,23 @@ \ No newline at end of file diff --git a/src/MistoxWebsite.Client/src/app/pages/store/admin/newitem/new.component.html b/src/MistoxWebsite.Client/src/app/pages/store/admin/newitem/new.component.html index 85d0c23..9a089e1 100644 --- a/src/MistoxWebsite.Client/src/app/pages/store/admin/newitem/new.component.html +++ b/src/MistoxWebsite.Client/src/app/pages/store/admin/newitem/new.component.html @@ -35,16 +35,21 @@ - + @for(msg of errorMsgs; track msg){ + + } +
-
- Image Preview -
+ @for (cur of imagePreviews; track cur){ +
+ Image Preview +
+ }
\ No newline at end of file diff --git a/src/MistoxWebsite.Client/src/app/pages/store/catalog/catalog.component.html b/src/MistoxWebsite.Client/src/app/pages/store/catalog/catalog.component.html index 2388fd8..b049639 100644 --- a/src/MistoxWebsite.Client/src/app/pages/store/catalog/catalog.component.html +++ b/src/MistoxWebsite.Client/src/app/pages/store/catalog/catalog.component.html @@ -1,32 +1,42 @@
-
- - -
-
- -
+ @if(product.images.length > 1){ +
+ + +
+ } + @if(product.images.length > 0){ +
+ +
+ }

{{ product.name }}

-
-

{{ line }}

-
+ @for(line of product.description.split('\n'); track line){ +
+

{{ line }}

+
+ }

${{ (product.cost/100).toFixed(2) }}

-
- - + +
+ } +
+ @if (auth.loggedInUser.role == 'Admin'){ +
+
-
-
- -
+ } \ No newline at end of file