34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
|
@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>
|