Files
rent-a-car/RentACar/WebApp/Views/Cars/Delete.cshtml
Dimitar Byalkov c9777042c0 Design changes
2022-04-08 20:55:29 +03:00

58 lines
1.7 KiB
Plaintext

@model Data.Entities.Car
@{
ViewData["Title"] = "Delete";
}
<h1>Delete</h1>
<h3>Are you sure you want to delete this?</h3>
<div>
<h4>Car</h4>
<hr />
<dl class="row">
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.Brand)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.Brand)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.Model)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.Model)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.Year)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.Year)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.CountPassengerSeats)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.CountPassengerSeats)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.Description)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.Description)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.PriceForDay)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.PriceForDay)
</dd>
</dl>
<form asp-action="Delete">
<input type="hidden" asp-for="Id" />
<input type="submit" value="Delete" class="btn btn-danger" />
<a type="button" class="btn btn-secondary" asp-action="Index">Back to List</a>
</form>
</div>