| | | 1 | | @model OzonRepositories.Data.Bitrix.PriceHistory |
| | | 2 | | @{ |
| | 0 | 3 | | ViewData["Title"] = "Редактирование записи"; |
| | | 4 | | } |
| | | 5 | | |
| | 0 | 6 | | @await Html.PartialAsync("_BsxGridShell") |
| | | 7 | | |
| | | 8 | | <div class="container mt-4 bsx-surface"> |
| | 0 | 9 | | <h2>Редактирование записи #@Model.Id</h2> |
| | | 10 | | |
| | | 11 | | <form asp-action="Edit" method="post"> |
| | 0 | 12 | | @Html.AntiForgeryToken() |
| | | 13 | | <input type="hidden" asp-for="Id" /> |
| | | 14 | | |
| | | 15 | | <div class="card"> |
| | | 16 | | <div class="card-body"> |
| | | 17 | | <div class="row"> |
| | | 18 | | <div class="col-md-6"> |
| | | 19 | | <div class="form-group"> |
| | | 20 | | <label asp-for="BitrixId" class="form-label"></label> |
| | | 21 | | <input asp-for="BitrixId" class="form-control" /> |
| | | 22 | | <span asp-validation-for="BitrixId" class="text-danger"></span> |
| | | 23 | | </div> |
| | | 24 | | |
| | | 25 | | <div class="form-group"> |
| | | 26 | | <label asp-for="Article" class="form-label"></label> |
| | | 27 | | <input asp-for="Article" class="form-control" /> |
| | | 28 | | <span asp-validation-for="Article" class="text-danger"></span> |
| | | 29 | | </div> |
| | | 30 | | |
| | | 31 | | <div class="form-group"> |
| | | 32 | | <label asp-for="PriceValue" class="form-label"></label> |
| | | 33 | | <input asp-for="PriceValue" class="form-control" type="number" step="0.01" /> |
| | | 34 | | <span asp-validation-for="PriceValue" class="text-danger"></span> |
| | | 35 | | </div> |
| | | 36 | | </div> |
| | | 37 | | |
| | | 38 | | <div class="col-md-6"> |
| | | 39 | | <div class="form-group"> |
| | | 40 | | <label asp-for="Currency" class="form-label"></label> |
| | | 41 | | <input asp-for="Currency" class="form-control" /> |
| | | 42 | | <span asp-validation-for="Currency" class="text-danger"></span> |
| | | 43 | | </div> |
| | | 44 | | |
| | | 45 | | <div class="form-group"> |
| | | 46 | | <label asp-for="ValueSource" class="form-label"></label> |
| | | 47 | | <input asp-for="ValueSource" class="form-control" /> |
| | | 48 | | <span asp-validation-for="ValueSource" class="text-danger"></span> |
| | | 49 | | </div> |
| | | 50 | | |
| | | 51 | | <div class="form-group"> |
| | | 52 | | <label asp-for="Author" class="form-label"></label> |
| | | 53 | | <input asp-for="Author" class="form-control" /> |
| | | 54 | | <span asp-validation-for="Author" class="text-danger"></span> |
| | | 55 | | </div> |
| | | 56 | | |
| | | 57 | | <div class="form-group"> |
| | | 58 | | <label asp-for="CreateDateTime" class="form-label"></label> |
| | | 59 | | <input asp-for="CreateDateTime" class="form-control" type="datetime-local" /> |
| | | 60 | | <span asp-validation-for="CreateDateTime" class="text-danger"></span> |
| | | 61 | | </div> |
| | | 62 | | </div> |
| | | 63 | | </div> |
| | | 64 | | </div> |
| | | 65 | | </div> |
| | | 66 | | |
| | | 67 | | <div class="mt-3"> |
| | | 68 | | <button type="submit" class="btn btn-success">Сохранить изменения</button> |
| | 0 | 69 | | <a asp-action="Details" asp-route-id="@Model.Id" class="btn btn-secondary">Отмена</a> |
| | | 70 | | </div> |
| | | 71 | | </form> |
| | | 72 | | </div> |
| | | 73 | | |
| | | 74 | | @section Scripts { |
| | | 75 | | @{ |
| | 0 | 76 | | await Html.RenderPartialAsync("_ValidationScriptsPartial"); |
| | | 77 | | } |
| | | 78 | | } |