| | | 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"> |
| | | 9 | | <h2>Создание новой записи истории цен</h2> |
| | | 10 | | |
| | | 11 | | <form asp-action="Create" method="post"> |
| | 0 | 12 | | @Html.AntiForgeryToken() |
| | | 13 | | |
| | | 14 | | <div class="row"> |
| | | 15 | | <div class="col-md-6"> |
| | | 16 | | <div class="form-group"> |
| | | 17 | | <label asp-for="BitrixId" class="control-label"></label> |
| | | 18 | | <input asp-for="BitrixId" class="form-control" /> |
| | | 19 | | <span asp-validation-for="BitrixId" class="text-danger"></span> |
| | | 20 | | </div> |
| | | 21 | | |
| | | 22 | | <div class="form-group"> |
| | | 23 | | <label asp-for="Article" class="control-label"></label> |
| | | 24 | | <input asp-for="Article" class="form-control" /> |
| | | 25 | | <span asp-validation-for="Article" class="text-danger"></span> |
| | | 26 | | </div> |
| | | 27 | | |
| | | 28 | | <div class="form-group"> |
| | | 29 | | <label asp-for="PriceValue" class="control-label"></label> |
| | | 30 | | <input asp-for="PriceValue" class="form-control" type="number" step="0.01" /> |
| | | 31 | | <span asp-validation-for="PriceValue" class="text-danger"></span> |
| | | 32 | | </div> |
| | | 33 | | </div> |
| | | 34 | | |
| | | 35 | | <div class="col-md-6"> |
| | | 36 | | <div class="form-group"> |
| | | 37 | | <label asp-for="Currency" class="control-label"></label> |
| | | 38 | | <input asp-for="Currency" class="form-control" /> |
| | | 39 | | <span asp-validation-for="Currency" class="text-danger"></span> |
| | | 40 | | </div> |
| | | 41 | | |
| | | 42 | | <div class="form-group"> |
| | | 43 | | <label asp-for="ValueSource" class="control-label"></label> |
| | | 44 | | <input asp-for="ValueSource" class="form-control" /> |
| | | 45 | | <span asp-validation-for="ValueSource" class="text-danger"></span> |
| | | 46 | | </div> |
| | | 47 | | |
| | | 48 | | <div class="form-group"> |
| | | 49 | | <label asp-for="Author" class="control-label"></label> |
| | | 50 | | <input asp-for="Author" class="form-control" /> |
| | | 51 | | <span asp-validation-for="Author" class="text-danger"></span> |
| | | 52 | | </div> |
| | | 53 | | |
| | | 54 | | <div class="form-group"> |
| | | 55 | | <label asp-for="CreateDateTime" class="control-label"></label> |
| | | 56 | | <input asp-for="CreateDateTime" class="form-control" type="datetime-local" /> |
| | | 57 | | <span asp-validation-for="CreateDateTime" class="text-danger"></span> |
| | | 58 | | </div> |
| | | 59 | | </div> |
| | | 60 | | </div> |
| | | 61 | | |
| | | 62 | | <div class="form-group mt-3"> |
| | | 63 | | <button type="submit" class="btn btn-success">Создать</button> |
| | | 64 | | <a asp-action="Index" class="btn btn-secondary">Отмена</a> |
| | | 65 | | </div> |
| | | 66 | | </form> |
| | | 67 | | </div> |
| | | 68 | | |
| | | 69 | | @section Scripts { |
| | | 70 | | @{ |
| | 0 | 71 | | await Html.RenderPartialAsync("_ValidationScriptsPartial"); |
| | | 72 | | } |
| | | 73 | | } |