Added icon to edit

Added edit link to success notification
This commit is contained in:
2014-01-21 15:11:10 -05:00
parent 9c2149d52c
commit 0ef5199048
4 changed files with 31 additions and 19 deletions
+4 -1
View File
@@ -109,6 +109,8 @@ namespace MileageTraker.Web.Controllers
.First(pt => pt.PurposeTypeId == model.Purpose.Selected);
DataService.AddLog(log);
var editLink = Url.Action("EditPast", "CreateLog", new {id = log.LogId});
TempData["StatusMessage-Type"] = "alert-success";
TempData["StatusMessage"] =
@"You've successfully created an entry
@@ -117,7 +119,8 @@ namespace MileageTraker.Web.Controllers
on <strong>" + model.Date.ToShortDateString() + @"</strong>
in Vehicle Id <strong>" + model.VehicleId + @"</strong>
ending in <strong>" + model.EndOdometer + @"</strong>
miles on the odometer.";
miles on the odometer. " +
@"<a href='" + editLink + @"' class='btn btn-mini btn-success'>Edit</a>";
return RedirectToAction("Index");
}