Add vehicle active/inactive state
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using MileageTraker.Web.Attributes;
|
||||
|
||||
@@ -57,6 +58,11 @@ namespace MileageTraker.Web.Models
|
||||
[FormatHint("mm/yy")]
|
||||
public string PurDate { get; set; }
|
||||
|
||||
[DataType(DataType.DateTime)]
|
||||
[DisplayFormat(NullDisplayText = "Currently Active", DataFormatString = @"{0:MM/dd/yyyy}")]
|
||||
[FormatHint("mm/dd/yyyy")]
|
||||
public DateTime? InactiveDate { get; set; }
|
||||
|
||||
[Required]
|
||||
[Display(Name = "Tag#")]
|
||||
[InputSize("small")]
|
||||
|
||||
Reference in New Issue
Block a user