diff options
author | Sergey Chebotar <s.chebotar@gmail.com> | 2023-02-22 07:56:30 +0300 |
---|---|---|
committer | Sergey Chebotar <s.chebotar@gmail.com> | 2023-02-22 07:56:30 +0300 |
commit | 5d03419a794a6dc97340d1d68495cd855c658849 (patch) | |
tree | 68acf3bf31dc58fcc9d580f5e69e55b16e8a6613 /Views/Figure/Details.cshtml | |
parent | 71a3253a72fcd888a750c7e412c236603061c58c (diff) |
Base figure edition
Diffstat (limited to 'Views/Figure/Details.cshtml')
-rw-r--r-- | Views/Figure/Details.cshtml | 33 |
1 files changed, 33 insertions, 0 deletions
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 + +<!DOCTYPE html> +<html> + +<head> + <title>Figure</title> + <link href="/lib/bootstrap/css/bootstrap.min.css" rel="stylesheet" /> +</head> + +<body> + <div class="row gx-4 gx-lg-5 row-cols-2 row-cols-md-3 row-cols-xl-4 justify-content-center"> + <div class="col mb-5"> + <div class="thumbnail h-100"> + <a href="@Model.FilePath"> + <img src="@Model.FilePath" class="img-thumbnail img-fluid" alt="@Model.Description"> + </a> + </div> + </div> + </div> + <form asp-action="Edit" asp-route-id="@Model.Id" method="post" class="m-2"> + <div asp-validation-summary="All"></div> + <div class="form-group"> + <label asp-for="Description" class="form-label">Description:</label> + @Html.TextAreaFor(model => model.Description, new { @class="form-control", @rows = 2 }) + </div> + <button type="submit" class="btn btn-primary mt-3">Save</button> + </form> + +</body> + +</html> |