Add cancel button for edit log.

Disable edit button for past month
Format gas correctly
This commit is contained in:
2014-01-21 11:30:17 -05:00
parent 1feda1b520
commit 9c2149d52c
7 changed files with 65 additions and 8 deletions
+10 -1
View File
@@ -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");
}