Full functionality for gas records.

This commit is contained in:
ivancheahhh
2024-01-03 06:45:39 -07:00
parent 8dfaf49e05
commit 12dff07e19
4 changed files with 143 additions and 2 deletions

View File

@@ -6,7 +6,7 @@
{
<div class="col-xl-2 col-lg-4 col-md-4 col-sm-4 col-4">
<div class="card" onclick="viewVehicle(@vehicle.Id)">
<img src="@vehicle.ImageLocation" style="height:145px" />
<img src="@vehicle.ImageLocation" style="height:145px; object-fit:scale-down;" />
<div class="card-body">
<h5 class="card-title text-truncate">@($"{vehicle.Year}")</h5>
<h5 class="card-title text-truncate">@($"{vehicle.Make}")</h5>

View File

@@ -33,7 +33,7 @@
<tbody>
@foreach (GasRecordViewModel gasRecord in Model)
{
<tr class="d-flex" style="cursor:pointer;" onclick="">
<tr class="d-flex" style="cursor:pointer;" onclick="showEditGasRecordModal(@gasRecord.Id)">
<td class="col-2">@gasRecord.Date</td>
<td class="col-2">@gasRecord.Mileage</td>
<td class="col-2">@gasRecord.Gallons.ToString("F")</td>