Add vehicle active/inactive state

This commit is contained in:
2015-06-18 10:59:07 -04:00
parent c7d7fa265e
commit 5d70617194
12 changed files with 155 additions and 19 deletions
@@ -1,13 +1,17 @@
@model DateTime
@model DateTime?
@{
Layout = "~/Views/Shared/EditorTemplates/_FieldLayout.cshtml";
var inputSize = (string)ViewData.ModelMetadata.AdditionalValues["InputSize"];
var val =
Model.HasValue
? Model.Value.ToShortDateString()
: string.Empty;
}
@if (!string.IsNullOrEmpty(inputSize))
{
@Html.TextBox("", (Model != DateTime.MinValue ? Model.ToShortDateString() : string.Empty ), new { @class = inputSize})
@Html.TextBox("", (Model != DateTime.MinValue ? val : string.Empty ), new { @class = inputSize})
}
else
{
@Html.TextBox("", (Model != DateTime.MinValue ? Model.ToShortDateString() : string.Empty ))
@Html.TextBox("", (Model != DateTime.MinValue ? val : string.Empty ))
}