| | | 1 | | @model OzonDomains.Models.Manufacturer |
| | | 2 | | |
| | | 3 | | @{ |
| | 0 | 4 | | ViewData["Title"] = $"Редактирование производителя - {Model?.Name ?? Model?.Id.ToString() ?? "N/A"}"; |
| | 0 | 5 | | Layout = "~/Views/Shared/_Layout.cshtml"; |
| | | 6 | | } |
| | | 7 | | |
| | 0 | 8 | | @await Html.PartialAsync("_BsxGridShell") |
| | | 9 | | |
| | | 10 | | <div class="container py-3 bsx-surface"> |
| | | 11 | | <h4>Производители</h4> |
| | | 12 | | <hr /> |
| | | 13 | | <div class="row"> |
| | | 14 | | <div class="col-md-4"> |
| | | 15 | | <form asp-area="Studio2" asp-controller="Manufacturers" asp-action="Edit"> |
| | | 16 | | <div asp-validation-summary="ModelOnly" class="text-danger"></div> |
| | | 17 | | <input type="hidden" asp-for="Id" /> |
| | | 18 | | <div class="form-group"> |
| | | 19 | | <label asp-for="Code" class="control-label"></label> |
| | | 20 | | <input asp-for="Code" class="form-control" readonly /> |
| | | 21 | | <span asp-validation-for="Code" class="text-danger"></span> |
| | | 22 | | </div> |
| | | 23 | | <div class="form-group"> |
| | | 24 | | <label asp-for="Name" class="control-label"></label> |
| | | 25 | | <input asp-for="Name" class="form-control" /> |
| | | 26 | | <span asp-validation-for="Name" class="text-danger"></span> |
| | | 27 | | </div> |
| | | 28 | | <br /> |
| | | 29 | | <div class="form-group"> |
| | | 30 | | <input type="submit" value="Сохранить" class="btn btn-primary" /> |
| | | 31 | | </div> |
| | | 32 | | </form> |
| | | 33 | | </div> |
| | | 34 | | </div> |
| | | 35 | | |
| | | 36 | | |
| | | 37 | | <div> |
| | | 38 | | <a asp-action="Index">К списку производителей</a> |
| | | 39 | | </div> |
| | | 40 | | </div> |
| | | 41 | | |
| | | 42 | | @section Scripts { |
| | 0 | 43 | | @{await Html.RenderPartialAsync("_ValidationScriptsPartial");} |
| | | 44 | | } |