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/Products/Create.cshtml | 37 ++++++++++++++++++++++++++ Views/Products/Details.cshtml | 60 +++++++++++++++++++++++++++++++++++++++++++ Views/Products/Index.cshtml | 43 +++++++++++++++++++++++++++++++ 3 files changed, 140 insertions(+) create mode 100644 Views/Products/Create.cshtml create mode 100644 Views/Products/Details.cshtml create mode 100644 Views/Products/Index.cshtml (limited to 'Views/Products') 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