VadVergasov_Programming/5/Lab_153503_Verhasau/Lab_153503_Verhasau/Areas/Admin/Pages/Details.cshtml
@page
@using Lab_153503_Verhasau.Areas.Admin.Pages;
@model Lab_153503_Verhasau.Areas.Admin.Pages.DetailsModel

@{
    ViewData["Title"] = "Details";
    Layout = "_Layout";
}

<h1>Details</h1>

<div>
    <h4>Souvenir</h4>
    <hr />
    <dl class="row">
        <dt class="col-sm-2">
            @Html.DisplayNameFor(model => model.Souvenir.Name)
        </dt>
        <dd class="col-sm-10">
            @Html.DisplayFor(model => model.Souvenir.Name)
        </dd>
        <dt class="col-sm-2">
            @Html.DisplayNameFor(model => model.Souvenir.Description)
        </dt>
        <dd class="col-sm-10">
            @Html.DisplayFor(model => model.Souvenir.Description)
        </dd>
        <dt class="col-sm-2">
            @Html.DisplayNameFor(model => model.Souvenir.Price)
        </dt>
        <dd class="col-sm-10">
            @Html.DisplayFor(model => model.Souvenir.Price)
        </dd>
        <dt class="col-sm-2">
            @Html.DisplayNameFor(model => model.Souvenir.Image)
        </dt>
        <dd class="col-sm-10">
            <img src="@Model.Souvenir.Image" style="width: 100%; max-height: 200px; min-height: 200px; object-fit: contain;">
        </dd>
        <dt class="col-sm-2">
            @Html.DisplayNameFor(model => model.Souvenir.Mime)
        </dt>
        <dd class="col-sm-10">
            @Html.DisplayFor(model => model.Souvenir.Mime)
        </dd>
    </dl>
</div>
<div>
    <a asp-page="./Edit" asp-route-id="@Model.Souvenir?.Id">Edit</a> |
    <a asp-page="./Index">Back to List</a>
</div>
