Added icon to edit
Added edit link to success notification
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user