@using MileageTraker.Web.ViewModels.FuelLog @model MatchViewModel @{ ViewBag.Title = "Match Fuel Log"; var fuelLog = Model.FuelLog; var matchedLogs = Model.MatchedLogs; var currentlyMatchedLog = Model.CurrentlyMatchedLog; var logViewModel = fuelLog.GetLogViewModel(); //logViewModel.LogType = MileageLogType.GasPurchase; } @section Styles { } @Html.Partial("_StatusMessage")
| Date | Driver | Tag Number | Odometer | Gas Purchased | |
|---|---|---|---|---|---|
| @Html.ValueFor(x => fuelLog.Date, "{0:d}") | @Html.ValueFor(x => fuelLog.DriverFullName) | @Html.ValueFor(x => fuelLog.TagNumber) @if(string.IsNullOrEmpty(fuelLog.VehicleId)) { No Matching Vehicle} | @Html.ValueFor(x => fuelLog.Odometer) | @Html.ValueFor(x => fuelLog.GasPurchased, "{0:0.000}") |
| Date | Driver | Tag Number | Odometer | Gas Purchased | |
|---|---|---|---|---|---|
| @Html.ValueFor(x => currentlyMatchedLog.Date, "{0:d}") | @Html.ValueFor(x => currentlyMatchedLog.UserFullName) | @Html.ValueFor(x => currentlyMatchedLog.VehicleTagNumber) | @Html.ValueFor(x => currentlyMatchedLog.EndOdometer) | @Html.ValueFor(x => currentlyMatchedLog.GasPurchased, "{0:0.000}") | @Html.ActionLink("Details", "Details", "Log", new { id = currentlyMatchedLog.LogId }, new { @class = "btn btn-mini", target="_blank" }) |
No matches.
} else {No additional matches.
} } else {| Date | Driver | Tag Number | Odometer | Gas Purchased | Match |
|---|---|---|---|---|---|
| @Html.ValueFor(x => matchedLog.Date, "{0:d}") | @Html.ValueFor(x => matchedLog.UserFullName) | @Html.ValueFor(x => matchedLog.VehicleTagNumber) | @Html.ValueFor(x => matchedLog.EndOdometer) | @Html.ValueFor(x => matchedLog.GasPurchased, "{0:0.000}") | @using (Html.BeginForm("Match", "FuelLog", FormMethod.Post)) { } |