@model WebVentaCoche.Models.Order

@{
    ViewData["Title"] = "Editar Orden";
}

<div class="container mt-5">
    <h2 class="mb-4">Editar Orden</h2>
    <form asp-action="Edit" method="post">
        <div class="form-group mb-3">
            <label asp-for="OrderDate">Fecha del Pedido</label>
            <input asp-for="OrderDate" class="form-control" type="date" />
        </div>
        <div class="form-group mb-3">
            <label asp-for="Status">Estado</label>
            <select asp-for="Status" class="form-control">
                <option value="Pending">Pendiente</option>
                <option value="Processing">En Proceso</option>
                <option value="Shipped">Enviado</option>
                <option value="Delivered">Entregado</option>
                <option value="Cancelled">Cancelado</option>
            </select>
        </div>
        <div class="form-group mb-3">
            <label asp-for="ShippingAddress">Dirección de Envío</label>
            <input asp-for="ShippingAddress" class="form-control" />
        </div>
        <div class="form-group mb-3">
            <label asp-for="TotalAmount">Total</label>
            <input asp-for="TotalAmount" class="form-control" type="number" step="0.01" />
        </div>
        <button type="submit" class="btn btn-success">Guardar Cambios</button>
        <a href="@Url.Action("Index", "Order")" class="btn btn-secondary">Cancelar</a>
    </form>
</div>
