@model DiseaseModel
@using (Html.BeginForm()) { @Html.MyValidationSummary(false, "* These fields are required or are Invalid.")
@if (Model == null) {

Create Disease for @ViewBag.SeedLot

} else {

Edit Disease for @Model.SeedLot

}
@Html.LabelFor(m => m.Type)
@Html.EditorFor(m => m.Type) @Html.ValidationMessageFor(m => m.Type, "*")
@Html.LabelFor(m => m.Frequency)
@Html.DropDownListFor(m => m.Frequency, new SelectList(new[] { null, "Spot", "Trace", "Low", "Medium", "High" }, Model != null ? Model.Frequency : null)) @Html.ValidationMessageFor(m => m.Frequency, "*")
@Html.LabelFor(m => m.DateChecked)
@Html.EditorFor(m => m.DateChecked) @Html.ValidationMessageFor(m => m.DateChecked, "*")
@Html.LabelFor(m => m.Counts)
@Html.EditorFor(m => m.Counts) @Html.ValidationMessageFor(m => m.Counts, "*")
@Html.LabelFor(m => m.Observed)
@Html.DropDownListFor(m => m.Observed, new SelectList(new[] { null, "YES", "NO" }, Model != null ? Model.Observed : null)) @Html.ValidationMessageFor(m => m.Observed, "*")
@Html.LabelFor(m => m.Within30Entrance)
@Html.DropDownListFor(m => m.Within30Entrance, new SelectList(new[] { null, "YES", "NO" }, Model != null ? Model.Within30Entrance : null)) @Html.ValidationMessageFor(m => m.Within30Entrance, "*")
@Html.LabelFor(m => m.LowDrainage)
@Html.DropDownListFor(m => m.LowDrainage, new SelectList(new[] { null, "YES", "NO" }, Model != null ? Model.LowDrainage : null)) @Html.ValidationMessageFor(m => m.LowDrainage, "*")
@Html.LabelFor(m => m.MachineryArea)
@Html.DropDownListFor(m => m.MachineryArea, new SelectList(new[] { null, "YES", "NO" }, Model != null ? Model.MachineryArea : null)) @Html.ValidationMessageFor(m => m.MachineryArea, "*")
@Html.LabelFor(m => m.MaleBaysWalked)
@Html.DropDownListFor(m => m.MaleBaysWalked, new SelectList(new[] { null, "YES", "NO" }, Model != null ? Model.MaleBaysWalked : null)) @Html.ValidationMessageFor(m => m.MaleBaysWalked, "*")
@Html.LabelFor(m => m.ObservedInCanopyInField)
@Html.DropDownListFor(m => m.ObservedInCanopyInField, new SelectList(new[] { null, "YES", "NO" }, Model != null ? Model.ObservedInCanopyInField : null)) @Html.ValidationMessageFor(m => m.ObservedInCanopyInField, "*")
@Html.LabelFor(m => m.ObservedInCanopyOutside)
@Html.DropDownListFor(m => m.ObservedInCanopyOutside, new SelectList(new[] { null, "YES", "NO" }, Model != null ? Model.ObservedInCanopyOutside : null)) @Html.ValidationMessageFor(m => m.ObservedInCanopyOutside, "*")
@Html.LabelFor(m => m.OverThreshold)
@Html.EditorFor(m => m.OverThreshold) @Html.ValidationMessageFor(m => m.OverThreshold, "*")
@Html.ActionLink("Cancel", "Index", new { recordId = ViewBag.RecordId, isFromEdit = ViewBag.IsFromEdit }, new { @class = "link_button" })
}