From 3bade8859bcd938b85c39ab16eaa0dcf8e01535f Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Sat, 3 Jun 2023 07:41:46 +0300 Subject: Mass refactoring --- Views/Account/Create.cshtml | 8 +++--- Views/Bundle/Create.cshtml | 33 ------------------------ Views/Bundle/Details.cshtml | 53 -------------------------------------- Views/Bundle/Index.cshtml | 49 ----------------------------------- Views/Figure/Details.cshtml | 45 +++++++++++++++++++------------- Views/Products/Create.cshtml | 37 ++++++++++++++++++++++++++ Views/Products/Details.cshtml | 60 +++++++++++++++++++++++++++++++++++++++++++ Views/Products/Index.cshtml | 43 +++++++++++++++++++++++++++++++ 8 files changed, 171 insertions(+), 157 deletions(-) delete mode 100644 Views/Bundle/Create.cshtml delete mode 100644 Views/Bundle/Details.cshtml delete mode 100644 Views/Bundle/Index.cshtml create mode 100644 Views/Products/Create.cshtml create mode 100644 Views/Products/Details.cshtml create mode 100644 Views/Products/Index.cshtml (limited to 'Views') diff --git a/Views/Account/Create.cshtml b/Views/Account/Create.cshtml index 2fff64a..f871673 100644 --- a/Views/Account/Create.cshtml +++ b/Views/Account/Create.cshtml @@ -5,7 +5,7 @@ - User Acccounts + User Acсounts @@ -14,7 +14,7 @@
- +
@@ -22,11 +22,11 @@
- +
- + Back
diff --git a/Views/Bundle/Create.cshtml b/Views/Bundle/Create.cshtml deleted file mode 100644 index 5197909..0000000 --- a/Views/Bundle/Create.cshtml +++ /dev/null @@ -1,33 +0,0 @@ -@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers -@model MyDarling.Models.UnderwearBundle - - - - - - New bundle - - - - - -
-
-
- - -
-
- - @Html.TextAreaFor(model => model.Description, new { @class="form-control", @rows = 2 }) -
-
- - -
- -
-
- - - \ No newline at end of file diff --git a/Views/Bundle/Details.cshtml b/Views/Bundle/Details.cshtml deleted file mode 100644 index ac13624..0000000 --- a/Views/Bundle/Details.cshtml +++ /dev/null @@ -1,53 +0,0 @@ -@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers -@model MyDarling.Models.UnderwearBundle - - - - - - Bundles list - - - - - -
-
-
- - -
-
- - @Html.TextAreaFor(model => model.Description, new { @class="form-control", @rows = 2 }) -
-
- -
- @foreach (var figure in @Model.Figures) - { -
-
- - @figure.Description - -
-
- } -
-
-
- -
-
- - -
- - -
-
- - - \ No newline at end of file diff --git a/Views/Bundle/Index.cshtml b/Views/Bundle/Index.cshtml deleted file mode 100644 index 9e1f293..0000000 --- a/Views/Bundle/Index.cshtml +++ /dev/null @@ -1,49 +0,0 @@ -@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers -@model IQueryable - - - - - - Bundles list - - - - -
-
-
- Underwear bundle list -
-
- Log Out -
-
-
- - - - - - - - - - - - @foreach (var bundle in Model) - { - - - - - - - } - -
#NameDescritionPrice
@bundle.Id@bundle.Name@bundle.Description@bundle.Price
- Add bundle -
- - - \ No newline at end of file diff --git a/Views/Figure/Details.cshtml b/Views/Figure/Details.cshtml index ace2a9a..3bb43ea 100644 --- a/Views/Figure/Details.cshtml +++ b/Views/Figure/Details.cshtml @@ -5,30 +5,39 @@ - Figure + Редактирование фотографии -
-
-
- - @Model.Description - + +
+
+
+
+ @{ + var filePath = $"/Content/{Model.ProductId}/{Model.Id}.jpg"; + } + + @Model.Description + +
+
+
+
+ + @Html.TextAreaFor(model => model.Description, new { @class="form-control", @rows = 2 }) +
+ + +
-
-
-
- - @Html.TextAreaFor(model => model.Description, new { @class="form-control", @rows = 2 }) -
- - -
- - + \ No newline at end of file diff --git a/Views/Products/Create.cshtml b/Views/Products/Create.cshtml new file mode 100644 index 0000000..4a6732c --- /dev/null +++ b/Views/Products/Create.cshtml @@ -0,0 +1,37 @@ +@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers +@model MyDarling.Models.Product + + + + + + New bundle + + + + + +
+
+
+
+ + +
+
+ + @Html.TextAreaFor(model => model.Description, new { @class="form-control", @rows = 2 }) +
+
+ + +
+ +
+
+ + + \ No newline at end of file diff --git a/Views/Products/Details.cshtml b/Views/Products/Details.cshtml new file mode 100644 index 0000000..3e45748 --- /dev/null +++ b/Views/Products/Details.cshtml @@ -0,0 +1,60 @@ +@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers +@model MyDarling.Models.Product + + + + + + Комплект: @Model.Name + + + + + +
+
+
+
+ + +
+
+ + @Html.TextAreaFor(model => model.Description, new { @class="form-control", @rows = 2 }) +
+
+ + +
+
+ +
+ @foreach (var figure in @Model.Figures) + { + + } +
+ +
+
+
+ + +
+
+ + + \ No newline at end of file diff --git a/Views/Products/Index.cshtml b/Views/Products/Index.cshtml new file mode 100644 index 0000000..0725bb6 --- /dev/null +++ b/Views/Products/Index.cshtml @@ -0,0 +1,43 @@ +@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers +@model IQueryable + + + + + + My Darling Underwear + + + + + +
+
+ + + + + + + + + + @foreach (var bundle in Model) + { + + + + + + } + +
НазваниеОписаниеЦена
@bundle.Name@bundle.Description@bundle.Price
+ +
+
+ + + \ No newline at end of file -- cgit v1.2.3