summaryrefslogtreecommitdiff
path: root/Views/Figure/Details.cshtml
diff options
context:
space:
mode:
authorSergey Chebotar <s.chebotar@gmail.com>2023-06-03 07:41:46 +0300
committerSergey Chebotar <s.chebotar@gmail.com>2023-06-03 07:41:46 +0300
commit3bade8859bcd938b85c39ab16eaa0dcf8e01535f (patch)
tree9157e3f27d8007206c12d5ec0cf5f2936295c0e7 /Views/Figure/Details.cshtml
parent81c1fc0c14253457c3c4fc24735e787ace1db70b (diff)
Mass refactoring
Diffstat (limited to 'Views/Figure/Details.cshtml')
-rw-r--r--Views/Figure/Details.cshtml45
1 files changed, 27 insertions, 18 deletions
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 @@
<html>
<head>
- <title>Figure</title>
+ <title>Редактирование фотографии</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>
+ <nav class="navbar navbar-dark bg-primary">
+ <a class="navbar-brand mx-4" href="/Products"><img height="30" src="/assets/img/logo.svg"></a>
+ <a href="/Account/logout"><button class="btn btn-outline-light mx-4">Выйти</button></a>
+ </nav>
+ <div class="container">
+ <div class="row row-cols-xl-3 row-cols-md-2 justify-content-center mt-3">
+ <div class="col">
+ <div class="thumbnail">
+ @{
+ var filePath = $"/Content/{Model.ProductId}/{Model.Id}.jpg";
+ }
+ <a href="@filePath">
+ <img src="@filePath" class="img-thumbnail img-fluid" alt="@Model.Description">
+ </a>
+ </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">Описание:</label>
+ @Html.TextAreaFor(model => model.Description, new { @class="form-control", @rows = 2 })
+ </div>
+ <button type="submit" class="btn btn-outline-success mt-3">Сохранить</button>
+ <button asp-action="Delete" asp-route-id="@Model.Id" method="post"
+ class="btn btn-outline-danger mt-3">Удалить</button>
+ </form>
</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>
- <button asp-action="Delete" asp-route-id="@Model.Id" method="post" class="btn btn-primary mt-3">Delete</button>
- </form>
-
</body>
-</html>
+</html> \ No newline at end of file