@using DeliveryTerminal.Models.Enums;
@model DeliveryTerminal.Models.RegistryViewModel

@{
    ViewData["Title"] = "Редактирование";
}

<h1>Редактирование</h1>

<h4>Реестр</h4>
<hr />
<div class="row">
    <div class="col-md-4">
        <form asp-action="Edit">
            <div asp-validation-summary="ModelOnly" class="text-danger"></div>
            <input type="hidden" asp-for="IdVM" />
            <div class="form-group">
                <label asp-for="DeliveryType" class="control-label"></label>
                <select asp-for="DeliveryType" class="form-control"><option value="@DeliveryType.CrossDock">Кросс-докинг</option><option value="@DeliveryType.Expeditor">Стандартная поставка</option></select>
            </div>
            <div class="form-group">
                <label asp-for="ReceiverId" class="control-label"></label>
                <select asp-for="ReceiverId" class="form-control" asp-items="ViewBag.ReceiverId"></select>
            </div>
            <div class="form-group">
                <label asp-for="ReceiveDate" class="control-label"></label>
                <input asp-for="ReceiveDate" class="form-control" />
                <span asp-validation-for="ReceiveDate" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="ReceiveTime" class="control-label"></label>
                <input asp-for="ReceiveTime" class="form-control" />
                <span asp-validation-for="ReceiveTime" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="SenderId" class="control-label"></label>
                <select asp-for="SenderId" class="form-control" asp-items="ViewBag.SenderId"></select>
            </div>
            <div class="form-group">
                <label asp-for="RegionId" class="control-label"></label>
                <select asp-for="RegionId" class="form-control" asp-items="ViewBag.RegionId"></select>
            </div>
            <div class="form-group">
                <label asp-for="CountPallets" class="control-label"></label>
                <input asp-for="CountPallets" class="form-control" />
                <span asp-validation-for="CountPallets" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="CountBoxes" class="control-label"></label>
                <input asp-for="CountBoxes" class="form-control" />
                <span asp-validation-for="CountBoxes" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="CountOversized" class="control-label"></label>
                <input asp-for="CountOversized" class="form-control" />
                <span asp-validation-for="CountOversized" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="Weight" class="control-label"></label>
                <input asp-for="Weight" class="form-control" />
                <span asp-validation-for="Weight" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="PackagingLoc" class="control-label"></label>
                <select asp-for="PackagingLoc" class="form-control"><option value="@PackagingLoc.Warehouse">Склад</option><option value="@PackagingLoc.City">Город</option></select>
            </div>
            <div class="form-group">
                <label asp-for="Driver" class="control-label"></label>
                <input asp-for="Driver" class="form-control" />
                <span asp-validation-for="Driver" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="OwnPallets" class="control-label"></label>
                <input asp-for="OwnPallets" class="form-control" />
                <span asp-validation-for="OwnPallets" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="Notes" class="control-label"></label>
                <input asp-for="Notes" class="form-control" />
                <span asp-validation-for="Notes" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="UPDID" class="control-label"></label>
                <input asp-for="UPDID" class="form-control" />
                <span asp-validation-for="UPDID" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="UPDDate" class="control-label"></label>
                <input asp-for="UPDDate" class="form-control" />
                <span asp-validation-for="UPDDate" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="UPDSum" class="control-label"></label>
                <input asp-for="UPDSum" class="form-control" />
                <span asp-validation-for="UPDSum" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="ExpID" class="control-label"></label>
                <input asp-for="ExpID" class="form-control" />
                <span asp-validation-for="ExpID" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="ExpDate" class="control-label"></label>
                <input asp-for="ExpDate" class="form-control" />
                <span asp-validation-for="ExpDate" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="Rate" class="control-label"></label>
                <input asp-for="Rate" class="form-control" />
                <span asp-validation-for="Rate" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="EditReason" class="control-label"></label>
                <input asp-for="EditReason" class="form-control" />
                <span asp-validation-for="EditReason" class="text-danger"></span>
            </div>
            <div class="form-group">
                <input type="submit" value="Сохранить" class="btn btn-primary" />
            </div>
        </form>
    </div>
</div>

<div>
    <a asp-action="Index">Назад к списку</a>
</div>

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