From 5d03419a794a6dc97340d1d68495cd855c658849 Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Wed, 22 Feb 2023 07:56:30 +0300 Subject: Base figure edition --- Views/Bundle/Details.cshtml | 24 ++++++++++++++++++++---- Views/Figure/Details.cshtml | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+), 4 deletions(-) create mode 100644 Views/Figure/Details.cshtml (limited to 'Views') diff --git a/Views/Bundle/Details.cshtml b/Views/Bundle/Details.cshtml index edaec11..b7df95b 100644 --- a/Views/Bundle/Details.cshtml +++ b/Views/Bundle/Details.cshtml @@ -11,22 +11,38 @@ -
+
- - @Html.TextAreaFor(model => model.Description, new { @class="form-control", @rows = 4 }) + + @Html.TextAreaFor(model => model.Description, new { @class="form-control", @rows = 2 }) +
+
+ +
+ @foreach (var figure in @Model.Figures) + { +
+
+ + @figure.Description + +
+
+ } +
- +
diff --git a/Views/Figure/Details.cshtml b/Views/Figure/Details.cshtml new file mode 100644 index 0000000..2148ed3 --- /dev/null +++ b/Views/Figure/Details.cshtml @@ -0,0 +1,33 @@ +@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers +@model MyDarling.Models.Figure + + + + + + Figure + + + + +
+
+
+ + @Model.Description + +
+
+
+
+
+
+ + @Html.TextAreaFor(model => model.Description, new { @class="form-control", @rows = 2 }) +
+ +
+ + + + -- cgit v1.2.3