- @Html.ActionLink("Edit", "EditPast", new { id = log.LogId }, new { @class = "btn btn-mini" })
+ @if (log.Date >= DomainRules.GetLogEntryCutoff())
+ {
+ @Html.ActionLink("Edit", "EditPast", new {id = log.LogId}, new {@class = "btn btn-mini"})
+ }
+ else
+ {
+ @Html.ActionLink("Edit", "EditPast", new {id = log.LogId}, new {@class = "btn btn-mini disabled", title="Previous Month" })
+ }
}
@@ -48,4 +55,7 @@
else
{
Mileage history not found for @ViewData["name"]
-}
\ No newline at end of file
+}
+
\ No newline at end of file
diff --git a/Web/Web.csproj b/Web/Web.csproj
index 1c4fc02..fee8cae 100644
--- a/Web/Web.csproj
+++ b/Web/Web.csproj
@@ -169,6 +169,7 @@
201303071926246_UpdatePurposeRequired.cs
+