Page design, remove migration, edit foreign key

This commit is contained in:
Dimitar Byalkov committed 2022-04-08 19:22:12 +03:00
1 parent 6ab09ad841
commit 7a888a4c2e
16 files changed
+163 -1214

No files matched your search

+6 -10
View File
@@ -4,19 +4,18 @@
ViewData["Title"] = "Cars";
}
<h1>Vehicle</h1>
<h2>Available cars</h2>
<h1>Vehicles</h1>
<p>
@if (this.User.IsInRole("Admin"))
{
<a asp-action="Create">Create car</a>
<a type="button" class="btn btn-primary" asp-action="Create">Add new car</a>
}
</p>
<table class="table">
<thead>
<tr>
<th>
@Html.DisplayNameFor(model => model.Id)
ID
</th>
<th>
@Html.DisplayNameFor(model => model.Brand)
@@ -28,16 +27,16 @@
@Html.DisplayNameFor(model => model.Year)
</th>
<th>
@Html.DisplayNameFor(model => model.CountPassengerSeats)
Seats
</th>
<th>
@Html.DisplayNameFor(model => model.Description)
</th>
<th>
@Html.DisplayNameFor(model => model.PriceForDay)
Daily price
</th>
<th>
Select
Actions
</th>
</tr>
</thead>
@@ -66,9 +65,6 @@
<td>
@Html.DisplayFor(modelItem => item.PriceForDay)
</td>
<td>
<a asp-controller="Rents" asp-action="Create" >Select</a>
</td>
@if (this.User.IsInRole("Admin"))
{
<td>