diff --git a/LittleShop/Areas/Admin/Views/Categories/Index.cshtml b/LittleShop/Areas/Admin/Views/Categories/Index.cshtml index e93a371..847179d 100644 --- a/LittleShop/Areas/Admin/Views/Categories/Index.cshtml +++ b/LittleShop/Areas/Admin/Views/Categories/Index.cshtml @@ -19,7 +19,8 @@
@if (Model.Any()) { -
+ +
@@ -70,6 +71,57 @@
+ + +
+ @foreach (var category in Model) + { +
+
+
+
+ @category.Name +
+ @if (category.IsActive) + { + Active + } + else + { + Inactive + } +
+ + @if (!string.IsNullOrEmpty(category.Description)) + { +

@category.Description

+ } + +
+ + @category.ProductCount products + + + @category.CreatedAt.ToString("MMM dd, yyyy") + +
+ +
+ + Edit Category + +
+ @Html.AntiForgeryToken() + +
+
+
+
+ } +
} else { diff --git a/LittleShop/Areas/Admin/Views/ShippingRates/Index.cshtml b/LittleShop/Areas/Admin/Views/ShippingRates/Index.cshtml index a78cdf4..9f3e552 100644 --- a/LittleShop/Areas/Admin/Views/ShippingRates/Index.cshtml +++ b/LittleShop/Areas/Admin/Views/ShippingRates/Index.cshtml @@ -19,7 +19,8 @@
@if (Model.Any()) { -
+ +
@@ -76,6 +77,75 @@
+ + +
+ @foreach (var rate in Model) + { +
+
+
+
+ @rate.Name +
+ @if (rate.IsActive) + { + Active + } + else + { + Inactive + } +
+ + @if (!string.IsNullOrEmpty(rate.Description)) + { +

@rate.Description

+ } + +
+
+
+ Country + @rate.Country +
+
+
+
+ Price + £@rate.Price +
+
+
+
+ Weight Range + @rate.MinWeight - @rate.MaxWeight g +
+
+
+
+ Delivery + @rate.MinDeliveryDays - @rate.MaxDeliveryDays days +
+
+
+ +
+ + Edit Shipping Rate + +
+ @Html.AntiForgeryToken() + +
+
+
+
+ } +
} else { diff --git a/LittleShop/Areas/Admin/Views/Users/Index.cshtml b/LittleShop/Areas/Admin/Views/Users/Index.cshtml index 3cd975e..28b7c1b 100644 --- a/LittleShop/Areas/Admin/Views/Users/Index.cshtml +++ b/LittleShop/Areas/Admin/Views/Users/Index.cshtml @@ -35,7 +35,8 @@
@if (Model.Any()) { -
+ +
@@ -83,6 +84,50 @@
+ + +
+ @foreach (var user in Model) + { +
+
+
+
+ @user.Username +
+ @if (user.IsActive) + { + Active + } + else + { + Inactive + } +
+ +

+ Created: @user.CreatedAt.ToString("MMM dd, yyyy") +

+ +
+ + Edit User + + @if (user.Username != "admin") + { +
+ @Html.AntiForgeryToken() + +
+ } +
+
+
+ } +
} else { diff --git a/LittleShop/Areas/Admin/Views/VariantCollections/Index.cshtml b/LittleShop/Areas/Admin/Views/VariantCollections/Index.cshtml index e159f6a..d370ff7 100644 --- a/LittleShop/Areas/Admin/Views/VariantCollections/Index.cshtml +++ b/LittleShop/Areas/Admin/Views/VariantCollections/Index.cshtml @@ -20,7 +20,8 @@
@if (Model.Any()) { -
+ +
@@ -78,6 +79,66 @@
+ + +
+ @foreach (var collection in Model) + { +
+
+
+
+ @collection.Name +
+ @if (collection.IsActive) + { + Active + } + else + { + Inactive + } +
+ +
+ Properties: + @if (collection.PropertiesJson != "[]" && !string.IsNullOrWhiteSpace(collection.PropertiesJson)) + { + + @collection.PropertiesJson.Substring(0, Math.Min(100, collection.PropertiesJson.Length))@(collection.PropertiesJson.Length > 100 ? "..." : "") + + } + else + { + No properties defined + } +
+ +
+ + Created: @collection.CreatedAt.ToString("MMM dd, yyyy") + + + Updated: @collection.UpdatedAt.ToString("MMM dd, yyyy") + +
+ +
+ + Edit Collection + +
+ @Html.AntiForgeryToken() + +
+
+
+
+ } +
} else {