@model esoft_API.Models.Entities.Task @{ ViewBag.Title = "Create"; }

Create

@using (Html.BeginForm()) { @Html.AntiForgeryToken()

Task


@Html.ValidationSummary(true, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.ExecutorID, "ExecutorID", htmlAttributes: new { @class = "control-label col-md-2" })
@Html.DropDownList("ExecutorID", null, htmlAttributes: new { @class = "form-control" }) @Html.ValidationMessageFor(model => model.ExecutorID, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Title, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.Title, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.Title, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Description, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.Description, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.Description, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.CreateDateTime, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.CreateDateTime, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.CreateDateTime, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Deadline, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.Deadline, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.Deadline, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Difficulty, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.Difficulty, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.Difficulty, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Time, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.Time, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.Time, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Status, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.Status, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.Status, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.WorkType, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.WorkType, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.WorkType, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.CompletedDateTime, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.CompletedDateTime, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.CompletedDateTime, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.IsDeleted, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.IsDeleted) @Html.ValidationMessageFor(model => model.IsDeleted, "", new { @class = "text-danger" })
}
@Html.ActionLink("Back to List", "Index")
@section Scripts { @Scripts.Render("~/bundles/jqueryval") }