@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")

@ViewBag.Title

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}")
@if (currentlyMatchedLog != null) {
Currently Matched Mileage Log
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" })
} @if (!matchedLogs.Any()) { if (currentlyMatchedLog == null) {

No matches.

} else {

No additional matches.

} } else {
Matching Mileage Logs based on Date, Vehicle, and Gas Purchased
@foreach (var matchedLog in matchedLogs) { }
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)) { }
} @Html.Partial("MatchLogViewModelPartial", logViewModel)