Contracts view has been modified + new view for complicated query.
This commit is contained in:
parent
1ad6ecf5e2
commit
9ba327a889
@ -58,4 +58,8 @@
|
||||
</tbody>
|
||||
</table>
|
||||
}
|
||||
<div class="contract">
|
||||
<select id="contract" name="contract" class="form-control" asp-items="@(new SelectList(@ViewBag.Contracts,"ID","CustomerFullName"))"></select>
|
||||
<input type="submit" id="contractbtn" value="Finished" class="btn btn-primary" />
|
||||
</div>
|
||||
</div>
|
51
RentalBusiness/Views/Home/TopCars.cshtml
Normal file
51
RentalBusiness/Views/Home/TopCars.cshtml
Normal file
@ -0,0 +1,51 @@
|
||||
@model List<TopCarsViewModel>
|
||||
@{
|
||||
ViewData["Title"] = "TopCars";
|
||||
}
|
||||
<div class="text-center">
|
||||
<h2 class="display-4">Most popular cars</h2>
|
||||
</div>
|
||||
<div class="text-center">
|
||||
@{
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
Car
|
||||
</th>
|
||||
<th>
|
||||
Total
|
||||
</th>
|
||||
<th>
|
||||
ContractsQuantity
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var item in Model)
|
||||
{
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.CarInfo)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.CustomerFullName)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.CurDate)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.ReturnDate)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Price)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Status)
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
}
|
||||
</div>
|
Loading…
Reference in New Issue
Block a user