Add cancel button for edit log.
Disable edit button for past month Format gas correctly
This commit is contained in:
@@ -62,7 +62,16 @@ namespace MileageTraker.Web.Controllers
|
||||
|
||||
DataService.UpdateLog(log);
|
||||
|
||||
TempData["StatusMessage"] = "Log updated";
|
||||
TempData["StatusMessage-Type"] = "alert-success";
|
||||
TempData["StatusMessage"] =
|
||||
@"You've successfully updated an entry
|
||||
traveling to <strong>" + viewModel.CityName + @"</strong>
|
||||
for <strong>" + log.Purpose.Purpose + @"</strong>
|
||||
on <strong>" + viewModel.Date.ToShortDateString() + @"</strong>
|
||||
in Vehicle Id <strong>" + viewModel.VehicleId + @"</strong>
|
||||
ending in <strong>" + viewModel.EndOdometer + @"</strong>
|
||||
miles on the odometer.";
|
||||
|
||||
return RedirectToAction("Index");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user