Validate new logs are not being entered after vehicle is inactive.

This commit is contained in:
2015-06-18 11:42:22 -04:00
parent 5d70617194
commit 11c3b2c56b
4 changed files with 39 additions and 25 deletions
+2 -1
View File
@@ -59,7 +59,8 @@ namespace MileageTraker.Web.Models
public string PurDate { get; set; }
[DataType(DataType.DateTime)]
[DisplayFormat(NullDisplayText = "Currently Active", DataFormatString = @"{0:MM/dd/yyyy}")]
[DisplayFormat(NullDisplayText = "Currently Active", DataFormatString = @"{0:MM/dd/yyyy}", ApplyFormatInEditMode = true)]
[InputSize("small")]
[FormatHint("mm/dd/yyyy")]
public DateTime? InactiveDate { get; set; }