From 3c83f9f4b01b5965e04739e5f8accf3235f8f699 Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Mon, 20 Feb 2023 21:53:21 +0300 Subject: Add base crud actions for bundles --- Views/Bundle/Create.cshtml | 33 +++++++++++++++++++++++++++++++++ Views/Bundle/Details.cshtml | 34 ++++++++++++++++++++++++++++++++++ Views/Bundle/Index.cshtml | 39 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 106 insertions(+) create mode 100644 Views/Bundle/Create.cshtml create mode 100644 Views/Bundle/Details.cshtml create mode 100644 Views/Bundle/Index.cshtml (limited to 'Views/Bundle') diff --git a/Views/Bundle/Create.cshtml b/Views/Bundle/Create.cshtml new file mode 100644 index 0000000..4afc5e1 --- /dev/null +++ b/Views/Bundle/Create.cshtml @@ -0,0 +1,33 @@ +@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers +@model MyDarling.Models.UnderwearBundle + + + + + + New bundle + + + + + +
+
+
+ + +
+
+ + +
+
+ + +
+ +
+
+ + + \ No newline at end of file diff --git a/Views/Bundle/Details.cshtml b/Views/Bundle/Details.cshtml new file mode 100644 index 0000000..edaec11 --- /dev/null +++ b/Views/Bundle/Details.cshtml @@ -0,0 +1,34 @@ +@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers +@model MyDarling.Models.UnderwearBundle + + + + + + Bundles list + + + + + +
+
+
+ + +
+
+ + @Html.TextAreaFor(model => model.Description, new { @class="form-control", @rows = 4 }) +
+
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/Views/Bundle/Index.cshtml b/Views/Bundle/Index.cshtml new file mode 100644 index 0000000..678caf0 --- /dev/null +++ b/Views/Bundle/Index.cshtml @@ -0,0 +1,39 @@ +@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers +@model IQueryable + + + + + + Bundles list + + + + + + + + + + + + + + + + @foreach (var bundle in Model) + { + + + + + + + } + +
#NameDescritionPrice
@bundle.Id@bundle.Name@bundle.Description@bundle.Price
+ Add bundle +
+ + + \ No newline at end of file -- cgit v1.2.3