57 lines
1.6 KiB
Plaintext
57 lines
1.6 KiB
Plaintext
@model Data.Entities.Rents
|
|
|
|
@{
|
|
ViewData["Title"] = "Delete";
|
|
}
|
|
|
|
<h1>Delete rent</h1>
|
|
|
|
<h3>Are you sure you want to delete this?</h3>
|
|
<div>
|
|
<hr />
|
|
<dl class="row">
|
|
<dt class="col-sm-2">
|
|
@Html.DisplayNameFor(model => model.Car.Id)
|
|
</dt>
|
|
<dd class="col-sm-10">
|
|
@Html.DisplayFor(model => model.Car.Id)
|
|
</dd>
|
|
<dt class="col-sm-2">
|
|
@Html.DisplayNameFor(model => model.Car.Brand)
|
|
</dt>
|
|
<dd class="col-sm-10">
|
|
@Html.DisplayFor(model => model.Car.Brand)
|
|
</dd>
|
|
<dt class="col-sm-2">
|
|
@Html.DisplayNameFor(model => model.Car.Model)
|
|
</dt>
|
|
<dd class="col-sm-10">
|
|
@Html.DisplayFor(model => model.Car.Model)
|
|
</dd>
|
|
<dt class="col-sm-2">
|
|
@Html.DisplayNameFor(model => model.Car.PriceForDay)
|
|
</dt>
|
|
<dd class="col-sm-10">
|
|
@Html.DisplayFor(model => model.Car.PriceForDay)
|
|
</dd>
|
|
<dt class="col-sm-2">
|
|
@Html.DisplayNameFor(model => model.StartDate)
|
|
</dt>
|
|
<dd class="col-sm-10">
|
|
@Html.DisplayFor(model => model.StartDate)
|
|
</dd>
|
|
<dt class="col-sm-2">
|
|
@Html.DisplayNameFor(model => model.EndDate)
|
|
</dt>
|
|
<dd class="col-sm-10">
|
|
@Html.DisplayFor(model => model.EndDate)
|
|
</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>
|