VadVergasov_Programming/5/Lab_153503_Verhasau/Lab_153503_Verhasau/Areas/Admin/Pages/Edit.cshtml
@page
@using Lab_153503_Verhasau.Areas.Admin.Pages;
@model Lab_153503_Verhasau.Areas.Admin.Pages.EditModel

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

<h1>Edit</h1>

<h4>Souvenir</h4>
<hr />
<div class="row">
    <div class="col-md-4">
        <form method="post" enctype="multipart/form-data">
            <div asp-validation-summary="ModelOnly" class="text-danger"></div>
            <input type="hidden" asp-for="Souvenir.Id" />
            <div class="form-group">
                <label asp-for="Souvenir.Name" class="control-label"></label>
                <input asp-for="Souvenir.Name" class="form-control" />
                <span asp-validation-for="Souvenir.Name" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="Souvenir.Description" class="control-label"></label>
                <input asp-for="Souvenir.Description" class="form-control" />
                <span asp-validation-for="Souvenir.Description" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="Souvenir.Price" class="control-label"></label>
                <input asp-for="Souvenir.Price" class="form-control" />
                <span asp-validation-for="Souvenir.Price" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="Souvenir.Category" class="control-label"></label>
                <select asp-for="CategoryId" asp-items="Model.Categories" class="form-control">
                </select>
                <span asp-validation-for="Souvenir.Category" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="Image" class="control-label"></label>
                <input asp-for="Image" name="Image" type="file" class="form-control-file" />
                <span asp-validation-for="Image" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="Souvenir.Mime" class="control-label"></label>
                <input asp-for="Souvenir.Mime" class="form-control" />
                <span asp-validation-for="Souvenir.Mime" class="text-danger"></span>
            </div>
            <div class="form-group">
                <input type="submit" value="Save" class="btn btn-primary" />
            </div>
        </form>
    </div>
</div>

<div>
    <a asp-page="./Index">Back to List</a>
</div>

@section Scripts {
    @{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}
