Adds a table to the Tax App

This commit is contained in:
Vazhin Tayeb 2021-01-18 16:00:04 +03:00
parent b0a0eb7a18
commit 7a4389fc87

View File

@ -15,10 +15,34 @@
<h3>Taxable Properties</h3> <h3>Taxable Properties</h3>
<h4>Vehicles</h4> <h4 class="my-4">Vehicles</h4>
<ul>
@foreach (var vehicle in Model.Vehicles) <table class="table col-lg-7 mt-3">
<thead class="bg-dark">
<tr>
<th scope="col" class="text-light">Model</th>
<th scope="col" class="text-light">License Plate</th>
<th scope="col" class="text-light">Color</th>
<th scope="col" class="text-light">Type</th>
</tr>
</thead>
<tbody>
@foreach (var vehicle in Model.Vehicles)
{ {
<li>@vehicle.Model (@vehicle.LicensePlate)</li>
<tr>
<td>@vehicle.Model</td>
<td>@vehicle.LicensePlate</td>
<td>@vehicle.Color</td>
<td>@vehicle.Type</td>
</tr>
} }
</ul>
</tbody>
</table>