@model MileageTraker.Web.ViewModels.ConfirmCreateLogViewModel @{ ViewBag.Title = "Confirm"; ViewBag.PageStyle = "~/Content/CreateLog/Index.css"; Layout = "~/Views/Shared/_Layout.min.cshtml"; var endOdometerStyle = Model.PreviousOdometer != null ? "style=padding-bottom:0px;" : ""; } @section Styles { } @using (Html.BeginForm("Action", "CreateLog", FormMethod.Post)) { @:
@ViewBag.Title

Please confirm - entry not complete until confirm clicked

if (Model.Miles == 0) {

Warning - 0 miles are logged - is this a duplicate?

}
@Html.LabelFor(model => model.VehicleId)
@Html.Encode(Model.VehicleId) (@Model.VehicleType)
@Html.LabelFor(model => model.EndOdometer)
@Html.Encode(Model.EndOdometer) @if (Model.PreviousOdometer != null) {
@Html.Encode(Model.Miles) miles since
@Html.Encode(Model.PreviousOdometer) on @Html.Encode(Model.PreviousDate.Value.ToShortDateString())
}
@Html.DisplayFor(model => model.LogType) @Html.DisplayFor(model => model.EmployeeName) @Html.DisplayFor(model => model.CityName)
@Html.LabelFor(model => model.GasPurchased)
@if (!string.IsNullOrEmpty(Model.GasPurchased)) { @Model.GasPurchased Gallons } else { No Gas Purchased }
@Html.LabelFor(model => model.Date)
@Html.Encode(Model.Date) (@Html.Encode(Model.DateHowLongAgo))
@:
}